Directshow - load movie always increase memory usage?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I am currently using Directshow and VC++ to create a simple movie player. I use IGraphBuilder and IMediaEvent interface to render the file (using IGraphBuilder::RenderFile followed by IMediaEvent::Run). When the user selects another movie, I first remove all the filters in the graph (using IGraphBuilder::RemoveFilter) and load the new movie as before. The problem is, there seems to be a memory leak somewhere in my app, since everytime the user selects a new movie, my app's memory usage (seen from Windows Task Manager) always rises by around 1MB and stays there. Could someone tell me what the possible causes for this leak is? Or does someone know a good sample on this topic? Thanks!