Microsoft KB Archive/261061

= FIX: System Handles Created Via AudioClip.play Are Not Being Freed =

Article ID: 261061

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Java Virtual Machine

-



This article was previously published under Q261061



SYMPTOMS
You may notice a memory leak in programs that use the AudioClip class to repeatedly play *.au files.



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

This bug has been verified to occur in both the 3100 and 3200 series of the Microsoft virtual machine.

This problem was corrected in Windows 2000 Service Pack 1.



Steps to Reproduce Behavior
Compile and run the following code: import com.ms.vm.loader.*;

public class AUPlay { public static void main(String[] args) throws Exception { try { while (true) { URLAudioClip clip; clip = (URLAudioClip)ClassLoader.getSystemResource(&quot;sound.au&quot;).getContent; clip.play; Thread.sleep(1000); clip.stop; System.gc; }   } catch (Exception e) { e.printStackTrace; } } }

For additional information about the latest service pack for Windows 2000, click the article number below to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

Keywords: kbbug kbfix kbjavavm33xxfix kbwin2000sp1fix KB261061

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.