I was about to respond with a nasty-acid comment to the effect that I
was in the part of the code that was determining the validity of the
handle, when I actually thought about your comment. The handle for the
libusb code...  Ah-ha!  Yes, there is the problem.  JNI calls to libusb
are not rigorously checking the return codes.  The fault lies in the
interfacing to libusb.  My bad.

I feel some significant code changes coming on....

Thanks for the help!

On Wed, 2008-08-27 at 20:17 -0400, Dan Streetman wrote:
> When a device is disconnected, its UsbDevice handle is no longer
> valid.  A new UsbDevice handle is created...
> 
> On Wed, Aug 27, 2008 at 6:10 PM, Mike Crowe <[EMAIL PROTECTED]> wrote:
> >        Hi
> >
> > I'm working on libusb.
> >
> > I am trying to fix the case where javax-usb is running and a device is
> > attached then detached.  I've found that the serial number for the
> > detached device in the javax-usb virtual hub is not coming back
> > correctly so as to correctly identify a device.  I followed the code
> > down in UsbDeviceImp and see that the serial number is being cached.
> > The serial number is correct until the device has been removed then it
> > appears that the cached value gets corrupted to serial number of another
> > device.
> >
> > Ideas?  Questions?  Things to try?
> >
> > Thanks in advance
> >
> > --
> > Mike
> > home of the USB-Accelerometer
> > http://www.gcdataconcepts.com/xlr8r-1.html
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> > Build the coolest Linux based applications with Moblin SDK & win great 
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > javax-usb-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
> >
-- 
Mike 
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
javax-usb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to