Microsoft KB Archive/262198

= FIX: Memory Leaks with Variant Types =

Article ID: 262198

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Java Virtual Machine

-



This article was previously published under Q262198



SYMPTOMS
If you pass Java/COM objects as instances of com.ms.com.Variant type, this can result in memory leaks. When you observe the process Mem Usage in Task Manager or you use Perfmon to view the private bytes for the process, you will see a continuous increase in size.



CAUSE
This is due to a bug in the Microsoft virtual machine (Microsoft VM) in the way it releases Java callable data wrappers.



RESOLUTION
For Windows NT and Windows 9x systems only:

To resolve this problem, update your version of the Microsoft virtual machine for Java to build 3193 or later. See the &quot;References&quot; section for a link to download the latest Microsoft VM.

For Windows 2000 systems:

The Microsoft VM contained within Windows 2000 is a protected file and as such can only be updated on Windows 2000 with Windows 2000 Service Pack releases. No fix is available at this time.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Microsoft Virtual Machine builds 3193 and later.

This problem was corrected in Windows 2000 Service Pack 1.



MORE INFORMATION
You can also use the heapmon sample that is available with the Microsoft SDK for Java version 4.0 to track the leak of such Java/COM objects. Refer to the &quot;References&quot; section to download the latest SDK and the corresponding documentation on how to use heapmon.

