关于filter资源释放的问题!
开发环境是Wince 5.0,我开发了一个基于transform的filter。用一个简单的AP去构成一个filter graph,成功播放媒体问题。退出时没有忘记release相关资源。但是在debug版下PB会有如下提示信息:
77954 PID:e39d567a TID:e3a7bf7e 0x839cb400: Process playwnd.exe loaded Module filter_jpeg.dll without freeing it before process exit
77955 PID:e39d567a TID:e3a7bf7e 0x839cb400: Process playwnd.exe loaded Module mmtimer.dll without freeing it before process exit
77957 PID:e39d567a TID:e3a7bf7e 0x839cb400: Process playwnd.exe loaded Module quartz.dll without freeing it before process exit
77958 PID:e39d567a TID:e3a7bf7e 0x839cb400: Process playwnd.exe loaded Module oleaut32.dll without freeing it before process exit
77960 PID:e39d567a TID:e3a7bf7e 0x839cb400: Process playwnd.exe loaded Module ole32.dll without freeing it before process exit
77962 PID:e39d567a TID:e3a7bf7e 0x839cb400: Process playwnd.exe loaded Module ceddk.dll without freeing it before process exit
请问这是什么原因?playwnd.exe是参考sdk修改的AP,filter_jpeg.dll 是我写的filter.感谢!
[解决办法]
在你的filter的析构函数断点,跟踪一下,看是否析构了,如果没有析构,那就要检查你的调用filter的代码是否正确了