Java JNA WindowProc JVM Crash -


in a previous question wanted implement wndproc handle wm_devicechange message in order know when usb device attached or detached.

i managed solve issue, .... in cases jvm crashes followin ugly error message:

     fatal error has been detected java runtime environment:        exception_access_violation (0xc0000005) @ pc=0x1000cb77, pid=3448, tid=4432       jre version: 6.0_17-b04      java vm: java hotspot(tm) client vm (14.3-b01 mixed mode, sharing windows-x86 )      problematic frame:      c  0x1000cb77       if submit bug report, please visit:        http://java.sun.com/webapps/bugreport/crash.jsp      crash happened outside java virtual machine in native code.      see problematic frame report bug. 

i found crashes jvm if close frame after inserting usb device, message isn't handled properly. in error message says there "problematic frame", hidden static window, handles wm_devicechange message causes crash, i'm not sure.

so question can done in situation, or cause jvm crash. suggestions welcome.

regards, gabor

the problematic frame refers stack frame (i.e. running method). not refer window (java.awt.frame or javax.swing.jframe).

does closing window somehow interact jni code?


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -