Z
zorba
I am using Delphi to call Java methods using JNI. It works fine on
the first run - Create JVM - find class and method - call method -
Free JMV. However when i call it for a second time i get an error code
of -1 when trying to create the JVM.
I think the reason for this is that the com+ dll object we use is not
shoutdown when the client is shut down as many different app use that
dll??
This may have absolutley no baring on the problem but i thought i
would mention it.
I have tried to use DestroyJavaVM when finished with it but it does
not appear to work, as i still get the above error of -1 when creating
the JVM.
I have also tried to see if the JVM is already running and not create
a new one if it is. (Not confident that i coded this correctly)
Can anyone help
Cheers
the first run - Create JVM - find class and method - call method -
Free JMV. However when i call it for a second time i get an error code
of -1 when trying to create the JVM.
I think the reason for this is that the com+ dll object we use is not
shoutdown when the client is shut down as many different app use that
dll??
This may have absolutley no baring on the problem but i thought i
would mention it.
I have tried to use DestroyJavaVM when finished with it but it does
not appear to work, as i still get the above error of -1 when creating
the JVM.
I have also tried to see if the JVM is already running and not create
a new one if it is. (Not confident that i coded this correctly)
Can anyone help
Cheers