D'oh,
If they're calling that from a native thread then they're probably
missing a call to "jvm->AttachCurrentThread(...)" /
"jvm->DetachCurrentTrhead(...)" somewhere too.
https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/invocation.html
"Attaching to the VM
The JNI interface pointer (JNIEnv) is valid only in the current thread.
Should another thread need to access the Java VM, it must first call
AttachCurrentThread() to attach itself to the VM and obtain a JNI
interface pointer. Once attached to the VM, a native thread works just
like an ordinary Java thread running inside a native method. The native
thread remains attached to the VM until it calls DetachCurrentThread()
to detach itself."
El 6/4/21 a las 23:24, antonio escribió:
I don't think the thread being invoked by a native thread has nothing to
do. My rationale (that is probably wrong, corrections welcome :-):
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists