中断位置红色所示
extern "C" _CRTIMP void * __cdecl _malloc_dbg (
        size_t nSize,
        int nBlockUse,
        const char * szFileName,
        int nLine
        )
{
        void *res = _nh_malloc_dbg(nSize, _newmode, nBlockUse, szFileName, nLine);        RTCCALLBACK(_RTC_Allocate_hook, (res, nSize, 0));
        return res;
}怀疑是界面销毁了,线程还没结束,线程中还在操作控件(List)
那怎么在界面销毁之前结束线程了,WaitForSingleObject()不晓得放哪里,
void CDlgIpcamList::OnTimer(UINT_PTR nIDEvent)
{
if(0 == nIDEvent)
{
check = AfxBeginThread(CheckOnlinethread,this);

return ;
}
CDialog::OnTimer(nIDEvent);
}知道的朋友指点一二,谢谢!