当前位置: 代码迷 >> 多媒体/流媒体开发 >> 关于filter资源释放的有关问题
  详细解决方案

关于filter资源释放的有关问题

热度:5587   发布时间:2013-02-26 00:00:00.0
关于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的代码是否正确了
  相关解决方案