New<Type>Array causing SIGSEGV ?

10 views
Skip to first unread message

Kenny

unread,
Jan 22, 2010, 9:50:09 AM1/22/10
to android-ndk
Hi,

I am trying to create a String array in C and pass it back to the Java
side through JNI. But whenever I try to create the array by doing
this:

jobjectArray someStringArray;
someStringArray = (*env)->NewObjectArray(env, 10, (*env)->FindClass
(env,"java/lang/String"),(*env)->NewStringUTF(env, ""));

I get a SIGSEGV in my Android app. (The C codes work fine when I
comment out the array creation.) I am fairly new to JNI... am I
missing something in terms of setting things up?

Reply all
Reply to author
Forward
0 new messages