dcsimg
I have problem with JNI_CreateJavaVM !!!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   hansoo_lee
Posted On:   Tuesday, December 4, 2001 05:59 PM

I'm developing a ISAPI Filter DLL which creates a Java VM. In the DllMain() function i create the java vm.
the problem is that JNI_CreateJavaVM hangs. i get the "before" debug message, but not the "after" message.

running the same code as stand-alone app it runs fine.

i'm using jdk1.3, vc++ 6.0, iis 5.0, win2k.

Re: I have problem with JNI_CreateJavaVM !!!

Posted By:   Christophe_Dore  
Posted On:   Thursday, December 13, 2001 04:31 AM

Just a pure assumption.


You may have some threading problems. JNI_CreateVMs launches threads. DLLMain() may ont be the best place to do so.


Try to do some lazy vm init.(ie call JNI_CreateVM the first time you actually need the VM).

About | Sitemap | Contact