I have found the problem but my c++ knowledge is very limited so I do not know how to solve the problem.
I have a c++ jni and I don't know how to clean up after my self. Do I need to delete the references to both visible_texture and jarray? I have googled alot and tried a few different ways without any luck, but I think that
ReleaseBooleanArrayElements might do the job?
Thanks in advance!
- Code: Select all
JNIEXPORT void JNICALL //int chAnimation added, will choose animation
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame(JNIEnv *env, jobject, jbooleanArray jarray)
jboolean* visible_texture = env -> GetBooleanArrayElements(jarray, isCopy1);