When disconnecting and reconnecting Usb cable of my peripheral from a laptop
I have to restart the pc laptop or the usb driver from my provider won't get
a handle to my win application (as if there was a pending irq). This problem
happens on several laptops I've tried, but not in the pc towers I've also
tried. (All with Xp service pack 2)
I've also tried with the usb bulk sample from the ddk and occurs exactly the
same: there is no problem in pc towers (I can disconnect and reconnect and
pnp works as expected) but the problem arises in the laptops.
Hopping I can get a help, thanks you in advance.

Best regards.
Xavier.

RE: Why when I disconnect & reconnect Usb requires requires restart? by Xavier

Xavier
Tue Apr 24 04:44:04 CDT 2007

Of course, it is understood, that all handles are closed before disconnecting
and reconnecting the usb wire.
Also I want to mention that the driver, when reconnecting, effectively is
loaded and throughs no error message, the peripheral describes itself
properly (for example with usbview.exe) and the win32 application can
communicate, through a dll, but createiofile will give back an invalid handle.

RE: Why when I disconnect & reconnect Usb requires requires restart? by Xavier

Xavier
Wed Apr 25 06:42:02 CDT 2007

I think I've found myself the solution. At least now the device and plug &
play works as expected. It seems that the .inf file needed the proper ClassId
or otherwise a security issue was thrown and logfiled in setupapi.txt