Re: ibusbk claim interface fail after 32 loops
Xiaofan Chen <[email protected]> Mon, 13 Jul 2015 19:01:15 +0800
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <CAGjSPUCq5-2nrBACfdjUOKufG5H_76-nC5tKGaH0Q55m4Dra5w@mail.gmail.com> |
On Mon, Jul 13, 2015 at 3:14 PM, michel <[email protected]> wrote: > I'm doing a simple repetitive open/close test using libusb 1.0.19 and libusbk > 3.0.7 > > The target device is a composite device based on CDC/ACM (2 interface MI0 > and MI1) type configuration but with vendor specific class code > > basically what i'm doing > > libusb_open(device, &handle); > libusb_claim_interface(handle,1); > > libusb_release_interface(handle,1); > libusb_close(handle); > > After 32 loops claim interface will fail with error -3 > this doesn't happen with 3.0.6 thousand loops can be execuetd without any > problem > > i'm using win-7 64 > > failure occur in both 32/64 bits (mingw32/64) . > I believe this is fixed in the git head version of libusb. Please clone the git version and build libusb. Ref: https://github.com/libusb/libusb Ref: https://github.com/libusb/libusb/commit/63a440f154364f0d306387d82ae6ae5f2ca1ab61 -- Xiaofan ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/