Hmm, well it may be a bug. Can you try the newest code from CVS and see if it still happens?
On Wed, 10 Nov 2004, Nathan T. Cook wrote: >I have some card-swipe reader code in experimental stages that was loosely >based on the MouseDriver example. I have been running into a problem, >though. It seems that if a device is claimed, released, and then >re-claimed in the same process, the second claim fails with this error: > >Could not claim interface to drive HID device: Could not claim interface : >Device removed (or no such device) (error number -19) > >I was able to make a very simple modification to the MouseDriver program >to make this fail... if I simply enclose the whole program in a loop (so >the device is unclaimed when "Enter" is pressed and then re-claimed when >the loop starts again), and take out the checks that ensure it is a mouse >(because I'm not using a mouse in this particular application), it will >have the same problem. > >I can work around this by passing a UsbInterfacePolicy with forceClaim() >always returning true and it works fine. However, I am not sure if this >is the correct way to do this. > >Any info would be helpful. A final note, I'm using these versions: >javax-usb : 0.10.2 >javax-usb-ri : 0.10.2 >javax-usb-ri-linux : 0.10.5 > >Apparently there are new versions in the works, should I just upgrade to >whatever is in source control now? OR will there be an "official" release >soon? > >Thanks! >-Nathan Cook > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Sybase ASE Linux Express Edition - download now for FREE >LinuxWorld Reader's Choice Award Winner for best database on Linux. >http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click >_______________________________________________ >javax-usb-devel mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel