N
Neena
I have a method like this...
But my VM throws exception when i make
nameLen = (*env)->GetStringUTFLength(env, serviceName);
what may be wrong???
JNIEXPORT jlong JNICALL
Java_openConnection
(JNIEnv *env, jobject obj, jstring remoteAddress, jstring serviceName,
jint serverChannel)
{
printf("Getting the length...");
nameLen = (*env)->GetStringUTFLength(env, serviceName);
printf("Getting string...");
nameStore = (*env)->GetStringUTFChars(env, serviceName, NULL);
....................
}
But my VM throws exception when i make
nameLen = (*env)->GetStringUTFLength(env, serviceName);
what may be wrong???
JNIEXPORT jlong JNICALL
Java_openConnection
(JNIEnv *env, jobject obj, jstring remoteAddress, jstring serviceName,
jint serverChannel)
{
printf("Getting the length...");
nameLen = (*env)->GetStringUTFLength(env, serviceName);
printf("Getting string...");
nameStore = (*env)->GetStringUTFChars(env, serviceName, NULL);
....................
}