Driver unload causing hang - Please help!

I’m still having problems unloading the NDIS driver. The machine seems to go into some sort of a “busy wait” when unloading. Can someone enumerate as to what the potential problems might be, and how I can detect and resolve those?. Are there any other tools / windbg commands that I can use to debug this problem?

I guess first I need a clarification on why there are so many handlers for unloading the driver/ or its bindings AND more importantly what is the order in which these are called? (ok driverunload is probably the last, but I still want to be sure)

There’s driverunload, MPHalt and UnbindAdapter handler

Regding DV I had the following q. :

 Bad clean up of objects (DV should detect that, but the part I didnt understand was the issue as to which checkbox I have to enable to ensure that unload checking is *definitely* done. In my case I have all 4 checkboxes except “Low resources simulation” checked)

Thanks
-Johnny

 

====

 

Yep.  DV didnt throw up any exceptions, whcih is why I dont have a straight clue that I can jump on. Please let me know if you guys come up with other ideas…

Thanks

-Johnny

From: “Mark Roddy”

>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] RE: Trouble unloading NDIS driver
>Date: Fri, 17 May 2002 22:52:26 -0400
>
>You of course tried using driver verifier to check your driver, right?
>
>-----Original Message-----
>Sent: Friday, May 17, 2002 3:09 PM
>To: NT Developers Interest List
>Subject: [ntdev] Trouble unloading NDIS driver
>
>
>I try to unload my driver using the Network control panel… The problem
>is that inspite of all the expected handlers being called (MPHalt,
>UnbindAdapterHandler ) and me doing the clean up for required objects,
>the machine seems to go into some kind of a big loop (I see the
>hourglass keeps spinning on the n/w control panel window) from there. I
>thought there might be some IRPs hanging around or something like that
>but couldnt find out anything specific enough to help me in that
>direction, using Windbg. How can I attack this problem … its
>irritating because every time I unload, I am forced to reboot the box to
>get it back in decent shape.
>
>
>
>Thanks !
>-Johnny
>


Send and receive Hotmail on your mobile device: Click Here