PC Review
Forums
Newsgroups
Windows XP
Windows XP Logo
surpriseremove test error
Forums
Newsgroups
Windows XP
Windows XP Logo
surpriseremove test error
![]() |
surpriseremove test error |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
My driver is for usb device. I try to test
surpriseremove. HCT simulates unpluging device. My driver steps into PnpSurpriseRemove, PnpRemove and Unload routine. Whwn HCT try to "insert" device, the device manager shows :"Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory. (Code 38)". Why? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
>-----Original Message----- >My driver is for usb device. I try to test >surpriseremove. HCT simulates unpluging device. My driver >steps into PnpSurpriseRemove, PnpRemove and Unload >routine. Whwn HCT try to "insert" device, the device >manager shows :"Windows cannot load the device driver for >this hardware because a previous instance of the device >driver is still in memory. (Code 38)". Why? > >. > After I restart computer and restart HCT, every thing is OK! But it's not acceptable. It must work normally on the first run of HCT. Help me! |
|
|
|
#3 |
|
Guest
Posts: n/a
|
This could due to improper reference count or an race between load and
unload operations. Or the driver was referenced multiple time by the device. "steven" <stevenl2003@hotmail.com> wrote in message news:071b01c358ca$ad6c9b80$a301280a@phx.gbl... > > >-----Original Message----- > >My driver is for usb device. I try to test > >surpriseremove. HCT simulates unpluging device. My > driver > >steps into PnpSurpriseRemove, PnpRemove and Unload > >routine. Whwn HCT try to "insert" device, the device > >manager shows :"Windows cannot load the device driver > for > >this hardware because a previous instance of the device > >driver is still in memory. (Code 38)". Why? > > > >. > > > > After I restart computer and restart HCT, every thing is > OK! But it's not acceptable. It must work normally on the > first run of HCT. Help me! |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Or, it could also be because your driver is not unloading properly during
the Surprise Removal, and therefore it can't load again when it's reconnected. Thanks, Karl "Andy Wen [MSFT]" <______@online.microsoft.com> wrote in message news:3f39757f$1@news.microsoft.com... > This could due to improper reference count or an race between load and > unload operations. Or the driver was referenced multiple time by the device. > > > "steven" <stevenl2003@hotmail.com> wrote in message > news:071b01c358ca$ad6c9b80$a301280a@phx.gbl... > > > > >-----Original Message----- > > >My driver is for usb device. I try to test > > >surpriseremove. HCT simulates unpluging device. My > > driver > > >steps into PnpSurpriseRemove, PnpRemove and Unload > > >routine. Whwn HCT try to "insert" device, the device > > >manager shows :"Windows cannot load the device driver > > for > > >this hardware because a previous instance of the device > > >driver is still in memory. (Code 38)". Why? > > > > > >. > > > > > > > After I restart computer and restart HCT, every thing is > > OK! But it's not acceptable. It must work normally on the > > first run of HCT. Help me! > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

