Hello,
Having a peculiar problem. When I call the following JNI method.
jobjectArray array = env->NewObjectArray(list->size, jclass, 0);
Now, list->size
is set to 54. But as soon as the code above is run the same pointer returns, 2405015736
whats going on? As affects the values held in the rest of the struct also. Setting a static value i.e.
jobjectArray array = env->NewObjectArray(54, jclass, 0)
Also has no effect. Any ideas? I'm stumped.
(jclass is a loaded class object jclass = env->FindClass("name");
)
Thanks