FIX: Non-Exiting Native Code Results in Memory Leak (234329)
The information in this article applies to:
- Microsoft virtual machine
This article was previously published under Q234329 SYMPTOMS
Native code that uses Java Native Interface (JNI) methods such as NewStringUTF to allocate memory may not free that memory after a call to DeleteLocalRef until the program exits.
CAUSE
Although DeleteLocalRef releases the memory used to store the object, that memory is never reused for new objects.
RESOLUTION
Install version 3181, or later, of the Microsoft virtual machine for Java, where this problem has been fixed.
Please refer to the "References" section in this article for more information on how to obtain the latest Microsoft VM.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCES
To download the latest build of the Microsoft virtual machine, visit the following Microsoft Web site:
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbbug kbfix kbJNative KB234329 |
---|
|