JNI_CreateJavaVM return -1

I have the following code:

function a{

call JNI_CreateJavaVM

do some thing

DestroyJavaVM

}

function b{

Call function a;

call function a again;

}

the problem is when I "call function a again". the create function returns -1.

anyone has any idea why?

Thanks!

[336 byte] By [zsseana] at [2007-11-27 7:50:22]
# 1
i saw some problem posted on other forum. the destroy function has some problems. the jvm is not really cleaned away.
zsseana at 2007-7-12 19:31:24 > top of Java-index,Java HotSpot Virtual Machine,Specifications...