Xiaofan Chen | 2 Nov 2010 06:10
Picon

Re: [libusb] #70: device removal breaks internal state, making later libusb_open calls always fail

On Mon, Nov 1, 2010 at 9:55 PM, Peter Stuge <peter <at> stuge.se> wrote:
> Xiaofan Chen wrote:
>> I think the program is not valid since it does not close the device
>> handle.
>
> The already opened device handle is not of interest once the problem
> in the ticket has started to happen, and it's not causing the
> problem.
>

You are of course right. However, the test program is still not
valid since it does not work for its intention even when there
is no unplug event. That is why I say it is not a valid test program.

I agree with you that there is a potential bug in libusb codes,
at least for Linux backend.

--

-- 
Xiaofan

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev

Gmane