Directshow filter - event notification with allocated resources

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi !

I don't understand all about the IMediaEvent interface.
I built filters which can raise events with special allocated resources. I
don't know where I can free these resources. I think I have to free them
inside the filter and not inside the application. But if the filter is
responsible of deallocation, what interface I have to use for this ?

Actually I free the allocated resource event inside the application, but I
have problem if my filter is in release mode and my application in debug
mode, so I think the deallocation would occurs inside the filter.

thanks
Mike


.