|
You say: "so when my java object is garbage collected this file must be deleted" My copy of the API documentation says something different: "Requests that the file or directory denoted by this abstract pathname be deleted when the virtual machine terminates." And that is exactly what is happening, according to your description. PC2 -----Original Message----- From: Ashish Kulkarni [mailto:kulkarni_ash1312@xxxxxxxxx] Sent: November 10, 2003 14:29 To: java400-l@xxxxxxxxxxxx Subject: Question about freeing the temp objects created when calling Java from RPG Hi, This is the sequence in which i call the methods in RGLE call CL to set classpath create the Java object call the method in java object eval JNIEnv_P = getJniEnv() to get the JVMEnv callp freeLocalRef(JNIEnv_P :bdnum) freeing the temp object But some how it does not work I know it does not work because i create a temp file in my QDLS (file.deleteOnExit();) so when my java object is garbage collected this file must be deleted, but it does not work..the file is present untill the user signoff from AS400, and then the file is deleted What wrong am i doing Ashish
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.