Do I need to delete JavaVM or JNIEnv pointers?

In JNI do I need to either delete the pointers or call DeleteGlobalRef for them?
JavaVM* theVM;
jint JNI_Onload(JavaVM *vm, void *reserved)
      theVM = vm;
      return JNI_VERSION_1_4;
//When done in native function, should I do either:
      //delete theVM;
      //delete env;
//or this:
      //env->DeleteGlobalRef( theVM );

The Sun VM will not exit a process space once started.
So cleaning up the resources associated to the VM instance itself is pointless.
And it might cause the application to fail.

Similar Messages

Maybe you are looking for

  • Dynamic text in Web Report (lookup on Variable Value)

    Hi If a user specifies a variable value to run a report (say company code), is it possible to have logic which looks up some attribute of company code (let's say country for example) and then displays this as part of some header text above the query

  • Initial Load ISU / CRM Issues

    Hi all I have a  few questions. 1. When you start an initial load for BUPA_MAIN in R3AS (from ISU to CRM) it seems only 1 DIAG WP is used (SM50). Is this normal? 2. In R3AM1 you can monitor the objects. Everything seems to be loaded but yet the statu

  • Group Policy changes cause Access Denied error for Domain Admin account

    Hi All, I am battling to get WSUS to work, and I think the route cause is problems editing the domain and domain controller group policy objects. We have 1 DC, approx 20 clients. 1 GPO for DC, 1 GPO for clients. Ther e is a link to the default domain

  • Setup table

    HI all,           why we dont have setup table for COPA, FI-SL, PS. Any of them can give valid reason

  • Update issues when ESA Virtual replacing C170 Appliance in Cluster Config

    I have opened a TAC ticket on this one but was curious if any others experienced the same issue. I have C170s in Centralized ClusterConfig. I recently learned about the Virtual ESAs after reading about the EOL for C170s in a few years. I think the Vi