Calling Java method from C++ based COM objects
1 posts in topic
Flat View  Flat View

Posted By:   Amar_Deo
Posted On:   Sunday, July 4, 2004 11:43 PM

I am loading JVM in our C++ code. and Sucessful to call the Java method. I am not unloading JVM so that I can call another method. when second time I try to use GetmethodID of the Constructor (i.e. using as method name). It throws some exception, But we are not able to see what exception its thowing.

Also, I am getting problemds with unloading of JVM. even if I call DestroyJVM() and DetachCurrentThread methods. it does not unload the JVM.

Please help.


Re: Calling Java method from C++ based COM objects

Posted By:   Cristiano_Sadun  
Posted On:   Tuesday, July 6, 2004 02:03 AM

I'm afraid some code is needed for that.

Did you release all the function pointers after the first invocation? Did u release all the objects acquired?
About | Sitemap | Contact