ENV: NetBeans 6.8 beta RC1, Java 1.6.0_17, Java Native Access (JNA)
I have a Java/JNA application that behaves correctly on Windows7 when started inside NetBeans,
but not when run from the command line i.e. java -jar my_app.jar
kernel32.ReadFile() error: The handle is invalid
call fails reading an USB device asynchronously i.e. detect the device and then wait for data
- synchronous read is OK
Any suggestions as to how to debug this?
The app works correctly on Windows XP, both Netbeans and command line