[Java-gnome-developer] Arrays/Vectors problem with Entry class
Brought to you by:
afcowie
From: Adam J. <ajo...@re...> - 2005-06-03 19:32:33
|
I'm having a problem trying to call Entry::setText(...) with an element of an array/Vector. The element is set correctly, but after that the rest of the array/Vector is cleared to empty strings. From what I've glanced in the source code, I'm suspecting that (*env)->ReleaseStringUTFChars(env, text, text_g); in JNIEXPORT void JNICALL Java_org_gnu_gtk_Entry_gtk_1entry_1set_1text (JNIEnv *env, jclass cls, jobject entry, jstring text) is to blame, but I'm not sure. Does anyone know of a way to fix this, or am I going to have to resort to cloning everything I throw into Entry::setText()? Thanks, Adam |