> I tried to use a Jni global reference in C code but it works well on
> the same Thread with multiple calls of the native function, but it
> doesn't works across different Threads.
That /should/ work -- it's one of the things that global refs are /for/. I
suspect that you may be attempting to use the wrong JNIEnv. Each thread that
is allowed to use JNI at all has at least one JNIEnv (depending on how deeply
nested callbacks between Java and JNI are), and you always have to use the
correct one. If that guess isn't correct, then you'll have to say more about
how/what you are doing with your threads and references.
-- chris