SVCHOST.EXE & NDIS IM

Hi,

While Installing my NDIS IM driver, svchost.exe crashes saying ‘accessed some unreferenced memory location’.

Please tell me how the installation of NDIS IM and crashing of svchost.exe is related.

Regards,

Girish
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

While Installing my NDIS IM driver, svchost.exe crashes saying ‘accessed some unreferenced memory location’.

Please tell me how the installation of NDIS IM and crashing of svchost.exe is related.

Regards,

Girish
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Does your IM have a Notify Object?

Stephan

On Tue, 19 Feb 2002 14:06:50 +0530, “girish_gurunathan”
wrote:

>Hi,
>
>While Installing my NDIS IM driver, svchost.exe crashes saying ‘accessed some unreferenced memory location’.
>
>Please tell me how the installation of NDIS IM and crashing of svchost.exe is related.
>
>Regards,
>
>Girish


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

No, I am not using the notify object.

while installing the NDIS IM driver svchost.exe crashes and say ACCESS VIOLATION.

Regards,

GG
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This one is nasty. When building your query/set information structure
for NdisRequest be sure to clear BytesWritten and BytesNeeded. Do not
rely on the underlying miniport to set BytesNeeded to 0 when the
information buffer is of sufficient size.

I reuse ndis request structures. Some OIDs originated from tcpip specify
an InformationBufferLength of 0 to determine sufficient buffer size.
When I reused the structure, I didn’t clear BytesNeeded, so I was
passing bogus values back up the stack.

This appears to be a common mistake. I’ve also observed the RaptorMobile
IM driver make the same mistake.

Dave

girish_gurunathan wrote:

Hi,

While Installing my NDIS IM driver, svchost.exe crashes saying ‘accessed
some unreferenced memory location’.

Please tell me how the installation of NDIS IM and crashing of
svchost.exe is related.

Regards,

Girish


Get Your Private, Free E-mail from Indiatimes at
http://email.indiatimes.com http:
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from
http://www.planetm.co.in http: — You are
currently subscribed to ntdev as: xxxxx@okena.com To unsubscribe send a
blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

Hi,

I am clearing the BytesNeeded and BytesWritten fields before sending or setting request.

It says unhandled exception in svchost.exe.

-girish

“NT Developers Interest List” wrote:

This one is nasty. When building your query/set information structure for NdisRequest be sure to clear BytesWritten and BytesNeeded. Do not rely on the underlying miniport to set BytesNeeded to 0 when the information buffer is of sufficient size.

I reuse ndis request structures. Some OIDs originated from tcpip specify an InformationBufferLength of 0 to determine sufficient buffer size. When I reused the structure, I didn’t clear BytesNeeded, so I was passing bogus values back up the stack.

This appears to be a common mistake. I’ve also observed the RaptorMobile IM driver make the same mistake.

Dave

girish_gurunathan wrote:
Hi,

While Installing my NDIS IM driver, svchost.exe crashes saying ‘accessed some unreferenced memory location’.

Please tell me how the installation of NDIS IM and crashing of svchost.exe is related.

Regards,

Girish

Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in — You are currently subscribed to ntdev as: xxxxx@okena.com To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@indiatimes.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Make sure you have Administrator rights.

I suggest you do one or more of the following:

Then see if you get any error or warning messages.

HTH, Stephan

On Tue, 19 Feb 2002 22:10:24 +0530, “girish_gurunathan”
wrote:

>No, I am not using the notify object.
>
>
>while installing the NDIS IM driver svchost.exe crashes and say ACCESS VIOLATION.
>
>
>Regards,
>
>
>GG


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Girish,

Is there an IM driver between your driver and the miniport? Check
BytesNeeded in the response path. Verify that it is 0 when the
information buffer is large enough to hold the entire response.
Typically, but not always, the only time tcpip sends an information
buffer that is too short is when tcpip is querying for the proper
information buffer size. Set a breakpoint in your response handler to
fire when (InformationBufferLength > 0) && (BytesNeeded > 0). If this
does happen to be the case, you may need to clear BytesNeeded in the
response handler to prevent the svchost crash.

Your problem may be something else entirely. I’m just mentioning a
couple scenarios where I experienced the same result.

Dave

girish_gurunathan wrote:

Hi,

I am clearing the BytesNeeded and BytesWritten fields before sending or
setting request.

It says unhandled exception in svchost.exe.

-girish

“NT Developers Interest List” wrote:

This one is nasty. When building your query/set information structure
for NdisRequest be sure to clear BytesWritten and BytesNeeded. Do not
rely on the underlying miniport to set BytesNeeded to 0 when the
information buffer is of sufficient size.

I reuse ndis request structures. Some OIDs originated from tcpip specify
an InformationBufferLength of 0 to determine sufficient buffer size.
When I reused the structure, I didn’t clear BytesNeeded, so I was
passing bogus values back up the stack.

This appears to be a common mistake. I’ve also observed the RaptorMobile
IM driver make the same mistake.

Dave

girish_gurunathan wrote:

Hi,

While Installing my NDIS IM driver, svchost.exe crashes saying ‘accessed
some unreferenced memory location’.

Please tell me how the installation of NDIS IM and crashing of
svchost.exe is related.

Regards,

Girish


Get Your Private, Free E-mail from Indiatimes at
http://email.indiatimes.com http:</http:>
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from
http://www.planetm.co.in http:</http:> — You are
currently subscribed to ntdev as: xxxxx@okena.com To unsubscribe send a
blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as:
xxxxx@indiatimes.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Get Your Private, Free E-mail from Indiatimes at
http://email.indiatimes.com http:
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from
http://www.planetm.co.in http: — You are
currently subscribed to ntdev as: xxxxx@okena.com To unsubscribe send a
blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>