代码如下:
if (!m_bInit) return; if (m_pWmvRecorder)
{
typedef void (CALLBACK* LPFNDLLFUNC)();
LPFNDLLFUNC lpfnDllFunc; // Function pointer
lpfnDllFunc = (LPFNDLLFUNC)GetProcAddress(m_hRecorderDLL,
"ReleaseWMVRecordObj");
if (lpfnDllFunc)
{
lpfnDllFunc();
}
}
m_pWmvRecorder = NULL; if (m_pRecorderCtrl)
{
m_pRecorderCtrl->Release();
m_pRecorderCtrl = NULL;
}
if (m_pRecorderCache)
{
m_pRecorderCache->Release();
m_pRecorderCache = NULL;
} m_bInit = FALSE;
提示错误:
DAKAGE:after ignore block (#0) at 0x02e94720
有人说是内存问题,怎么解决?谢谢!!
if (!m_bInit) return; if (m_pWmvRecorder)
{
typedef void (CALLBACK* LPFNDLLFUNC)();
LPFNDLLFUNC lpfnDllFunc; // Function pointer
lpfnDllFunc = (LPFNDLLFUNC)GetProcAddress(m_hRecorderDLL,
"ReleaseWMVRecordObj");
if (lpfnDllFunc)
{
lpfnDllFunc();
}
}
m_pWmvRecorder = NULL; if (m_pRecorderCtrl)
{
m_pRecorderCtrl->Release();
m_pRecorderCtrl = NULL;
}
if (m_pRecorderCache)
{
m_pRecorderCache->Release();
m_pRecorderCache = NULL;
} m_bInit = FALSE;
提示错误:
DAKAGE:after ignore block (#0) at 0x02e94720
有人说是内存问题,怎么解决?谢谢!!
IWMVRecorder* m_pWmvRecorder;
我这样释放不行哦?
m_pWmvRecorder->Release();