[liamstask][1] commented on [issue 37][2] on [libusbx/libusbx][3] July 24,
2012

> Ah, I see ERROR_FILE_NOT_FOUND does not get handled in
windows_transfer_callback() in windows_usb.c. Seems like cleaning up and
setting the transfer status to LIBUSB_TRANSFER_NO_DEVICE would be ideal, as
well as handling the corresponding scenario in winusb_abort_transfers().

>

> A bit more info: if I call libusb_exit() and libusb_init() once I've
detected this condition, it corrects itself but this is not a sufficient
workaround, since I'm handling multiple devices and would need to synchronize
their state with the state of the library, unless I used a separate context
for each device, which is not ideal :)

   [1]: https://github.com/liamstask

   [2]: https://github.com/libusbx/libusbx/issues/37#issuecomment-7195724
(v0.1.11, winusb backend: aborts do not succeed for open transfers on a device
that gets disconnected)

   [3]: https://github.com/libusbx/libusbx

URL: https://github.com/libusbx/libusbx/issues/37#issuecomment-7195724

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to