Why when I disconnect & reconnect Usb requires requires restart?

Discussion in 'Windows Vista Drivers' started by Xavier, Apr 24, 2007.

  1. Xavier

    Xavier Guest

    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.
     
    Xavier, Apr 24, 2007
    #1
    1. Advertisements

  2. Xavier

    Xavier Guest

    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.
     
    Xavier, Apr 24, 2007
    #2
    1. Advertisements

  3. Xavier

    Xavier Guest

    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
     
    Xavier, Apr 25, 2007
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.