Microsoft KB Archive/269529

= Memory Leak in Window Media Format SDK Reader Object =

Article ID: 269529

Article Last Modified on 10/27/2000

-

APPLIES TO


 * Microsoft Windows Media Format Software Development Kit 4.1

-



This article was previously published under Q269529



SYMPTOMS
When you use Microsoft Windows Media Format SDK version 4.1, a memory leak may occur when you create multiple instances of the IWMReader object by calling the WMCreateReader function.



RESOLUTION
The memory leak has been resolved in Windows Media Format SDK 7.0, which can be obtained from the following Web site:

http://www.microsoft.com/windowsmedia



STATUS
Microsoft has confirmed that this is a problem in Microsoft Windows Media Format SDK.



MORE INFORMATION
This problem can be reproduced by modifying the WMAPlay sample in the Windows Media Format SDK.

The existing WMAPlay sample demonstrates the IWMReader functionality by reading a WMA file and passing samples to a callback function defined by the application. The application then renders the sample to the audio device.

Modify Wmaplay.cpp to play the WMA file in an infinite loop.

int __cdecl main( int argc, char *argv[] ) {   puts( &quot;wmaplay.exe v0.2 -- plays Windows Media Audio streams\n&quot; ); while(1){ ....       ....        ....    } }

By using Task Manager, you can see the VM usage increase. Eventually, the system stops responding.

Keywords: kbbug kbfile kbpending KB269529

-

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

© Microsoft Corporation. All rights reserved.