+ -
当前位置:首页 → 问答吧 → 如何解决这个内存溢出问题?

如何解决这个内存溢出问题?

时间:2011-12-18

来源:互联网

代码如下:C/C++ code
    
     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
有人说是内存问题,怎么解决?谢谢!!

作者: yeyuanzhi2012   发布时间: 2011-12-18

m_pWmvRecorde 这个谁负责释放呢?

作者: onlycs   发布时间: 2011-12-18