Can we use jmethodID intialized on one thread in another thread ? I asked this because my jvm is crashing when i run the jni program,in which i have initialized jmethodID on one thread and using it in another thread. I was thinking if this could be a reason.
I have kept jmethodID as a global varibale by declaring at the top. Then in one of the call I initialize it and in the subsequent calls i attempt to reuse it.
Quoting from the JNI Specification: