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:>