Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Java Invocation API in C++

0 replies · 1,160 views · Started 18 May 2004

I'm developing a DLL for Symbian for using in Java-programs. In the DLL (C++) I create a thread, listening on a socket for incomming data. When data is received I want to make a Javacallback. If I make a Callback out of the thread (in JNI-Calls) it works fine but in the thread I get an Kern-Exec 3 (nullpointer-error i think).

It crashes here (before trying to do the callback itself)

(*glob_jvm)->AttachCurrentThread(glob_jvm, (void**)&local_env, NULL)

Without the JNIenvironment-pointer local_env its not possible to call a function in Java.

I hope somebody can help.

Markus