Hello everyone, I have a question:
is there a way to make a global reference (pointer) in native code that'll survive between native method invocations?
something like this:
is there a way to make a global reference (pointer) in native code that'll survive between native method invocations?
something like this:
Code:
... Some_struct *something=NULL; JNIEXPORT void JNICALL Java_SomeClass_initSomething(JNIEnv *env, jobject obj); JNIEXPORT jint JNICALL Java_SomeClass_useSomething(JNIEnv *env, jobject obj); ...
Comment