Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DirectShow : Memory leak after RenderFile and Run

43 views
Skip to first unread message

Smelena

unread,
Oct 13, 2009, 6:20:02 AM10/13/09
to
I use DirectShow in my application for playback of .wmv files on Windows CE
5.0 station. After calling RenderFile() and Run(), completing video and
clearing all interfaces, getting memory leak of an approximately 50Kb. My
video file size is 600 Kb. When I try running my code for small file (60 Kb),
I get the same result. I am sure that I am releasing all interfaces and I
checked that Window Media Player on my station don't leave memory leaks. I
don't use own thread for media running. May you some suggestion for my
problem?
Thank you

Saad_Aomata

unread,
Oct 21, 2009, 2:30:16 PM10/21/09
to
Smelena,

If I understand this correctly, when you play a file through your own
application, you get memory leaks but when you play the same file through the
sample CEPlayer on Windows CE, you do not get memory leaks. If that is true
then you are not releasing all the interfaces in your application.

If you use debug version of quartz.dll then upon closing your application,
you will get a dump of all unloaded DShow components/interfaces in the output
window. This should give you some clues of where to look for the leak.

Thanks
Saad Puri
AOMATA LLC. | www.aomataconsulting.com

0 new messages