AttachCurrentThread call fails with VAJ VM.
1 posts in topic
Flat View  Flat View

Posted By:   John_Groppe
Posted On:   Friday, April 19, 2002 02:30 PM

I’m trying to have a dll call back to a waiting Java thread. To do this, I use the AttachCurrentThread method. It works when the code is run via the command line (jdk 1.4). However, it fails when I run it in VAJ’s VM. Has anyone successfully accomplished this with VAJ?

// Get an env pointer for this thread context!
JNIEnv* env ;
jint rc = m_jvm->AttachCurrentThread( (void**)&env, NULL );

Thanks in advance,

John Groppe

Re: AttachCurrentThread call fails with VAJ VM.

Posted By:   Stephen_Johnson  
Posted On:   Tuesday, April 30, 2002 08:34 AM

I also have the same problem. I was reading in another forum (though I cannot remember where) that this is a bug in VAJ 3.5. I do not know if it is fixed in 4.0. Right now since this only affects a very small portion of the app I am working on I just exported the code when I ever I want to use that portion.
About | Sitemap | Contact