0x7574812f 处有未经处理的异常

HVSnapContinuous.exe 中的 0x7574812f 处有未经处理的异常: Microsoft C++ 异常: 内存位置 0x0033f3e4 处的 cv::Exception。
mfc画完矩形后onlbuttonup之后单步调试在
int CWinThread::Run()
{
ASSERT_VALID(this);
_AFX_THREAD_STATE* pState = AfxGetThreadState();

// for tracking the idle time state
BOOL bIdle = TRUE;
LONG lIdleCount = 0;

// acquire and dispatch messages until a WM_QUIT message is received.
for (;;)
{
    // phase1: check to see if we can do idle work
    while (bIdle &&
        !::PeekMessage(&(pState->m_msgCur), NULL, NULL, NULL, PM_NOREMOVE))
    {
        // call OnIdle while in bIdle state
        if (!OnIdle(lIdleCount++))
            bIdle = FALSE; // assume "no idle" state
    }

    // phase2: pump messages while available
    do
    {
        // pump message, but quit on WM_QUIT
        if (!PumpMessage())
            return ExitInstance();

        // reset "no idle" state after pumping "normal" message
        //if (IsIdleMessage(&m_msgCur))
        if (IsIdleMessage(&(pState->m_msgCur)))
        {
            bIdle = TRUE;
            lIdleCount = 0;
        }

    } while (::PeekMessage(&(pState->m_msgCur), NULL, NULL, NULL, PM_NOREMOVE));
}

}
这里面的while (::PeekMessage(&(pState->m_msgCur), NULL, NULL, NULL, PM_NOREMOVE));中的错误 求帮忙啊

指针异常。断点单步跟踪一下

指针异常。断点单步跟踪一下