1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0031727: Samples, JNI Sample - JNI DETECTED ERROR on calling OcctJniRenderer.postMessage()

Use CallVoidMethod() instead of CallObjectMethod().
This commit is contained in:
kgv 2020-08-21 11:47:24 +03:00 committed by bugmaster
parent fe3dbc63fc
commit 4c99a1f80a

View File

@ -66,6 +66,6 @@ void OcctJni_MsgPrinter::send (const TCollection_AsciiString& theString,
}
jstring aJStr = myJEnv->NewStringUTF ((theString + "\n").ToCString());
myJEnv->CallObjectMethod (myJObj, myJMet, aJStr);
myJEnv->CallVoidMethod (myJObj, myJMet, aJStr);
myJEnv->DeleteLocalRef (aJStr);
}