I just started working with Android NDK, but I keep getting SIGSEGV when I have this call in my C code:
jobjectArray someStringArray;
someStringArray = (*env)->NewObjectArray(env, 10,
(*env)->FindClass(env,"java/lang/String"),(*env)->NewStringUTF(env, ""));
Based on the whole example that I can find, the above code is correct, but I keep getting SIGSERGV, and everything is fine if the NewObjectArray line is commented out. Any idea what might cause such a problem?
source
share