Click here to Skip to main content
15,900,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing some memory leaks in windowmediaplayer after disposing it.

I have a window media player in my form. Upon writing the following piece of code,
axWindowsMediaPlayer1.close();
axWindowsMediaPlayer1.Dispose();


still the following remains in the memory
AxWMPLib.AxWindowsMediaPlayerEventMulticaster

AxHost
Posted
Updated 9-Feb-11 18:52pm
v2

1 solution

This object has been marked for clearance. However AFAIK, the Garbage Collector will not clear the object immediately. It will do so when it feels the need to do so.
 
Share this answer
 
Comments
abcurl 10-Feb-11 0:38am    
Hi
Thanks for the quick reply.

I waited for long time, but the memory does not get disposed.

In my case, I have to dynamically create the instanse of Window Media Player.
And Finally, it crashes, due to Memory Out of Exception

Please help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900