I am trying to notify my Java method some integer value through my C++
program. I already have a JVM running. So i am not creating a new VM. 

I am calling 

jvm->AttachCurrentThread((void**)&env, NULL);
.......
find class, find method, create object instance and then call 

env->CallVoidMethod(obj,mid, someint);

then detach current thread.

This works great on IBM JDK 2-13 but when i try to use this on Black downs
j2sdk1.3.0 it gives me a JNI crash at AttachCurrentThread(.....);

## An unexpected exception has been detected in native code outside the VM.
#program counter = 0x48f122a2
#
# Problematic Thread: prio=5 tid=0x804eae8 nid=0x4485 runnable
#

I have no idea what's going on and why this is working on IBM JDK and not on
Blackdowns. Any one has any ideas or any pointers, any links to any sample
code...Any help is greatly appreciated.

thanks,
-Ajit


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to