joecarr / javahidapi

Automatically exported from code.google.com/p/javahidapi
Other
0 stars 0 forks source link

Opening an opened device succeeds #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Plug two identical devices and list the devices
2. Open device #1 ( By first opening all devices one by one to identify the 
desired one )
3. Open device #2 ( By first opening all devices one by one to identify the 
desired one )
   This causes device#1 to get opened ( API does not return null where it should be)
4. Writing to device #1 throws IO operations since the handle is lost.

Note: Step #3 most of the times is reproducible only when closing one of the 
devices and opening it again.

What is the expected output? What do you see instead?
If the device is opened ( busy ), it should return null

What version of the product are you using? On what operating system?
Version 1.1, OS: Linux Ubuntu 9.10 

Please provide any additional information below.

Original issue reported on code.google.com by srishm...@gmail.com on 30 Oct 2012 at 8:50