Code: Select all
JniKeyEvent = JniEnv->NewObject(Class_KeyEvent, Method_constructor, action, code);
Is there a reason for the static variables? If I make them local member variables, I have not been able to reproduce the crash.
Code: Select all
JniKeyEvent = JniEnv->NewObject(Class_KeyEvent, Method_constructor, action, code);