codeminders / javahidapi

Java API for HID (Human Interface) Devices
Other
10 stars 7 forks source link

Close not works properly #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. HIDDevice dev;
   dev = HIDManager.openById(VENDOR_ID, PRODUCT_ID, null);
   dev.close();
   System.out.println("Close works");

What is the expected output? What do you see instead?

If the device close in correct way, then the output must be "Close works". but 
the aplication exit defore println(..).

What version of the product are you using? On what operating system?
version:javahidapi-20111221
Operating System: Ubuntu 10.04

Please provide any additional information below.

before close the device, the aplication works fine, but if I close de device 
(dev.close), the aplication exit.

Please help me.

Original issue reported on code.google.com by mauricio...@gmail.com on 27 Jul 2012 at 8:27

GoogleCodeExporter commented 9 years ago
I am getting behavior which is possibly related in ubuntu 13.04: close() does 
not throw errors but does not appear to close anything either. Device remains 
locked even when my program exits and other programs can't use it until I 
unplug/replug the device.

Original comment by cjrit...@gmail.com on 7 Sep 2013 at 3:01