请求帮助 invalid handle
我使用的线程,用
AfxBeginThread(capter,this);启动线程,然后进入下面线程
UINT CMyclientView::capter(LPVOID pData)
{
while(1)
{
CMyclientView *pThis=(CMyclientView *)pData;
int i=GetLastError();
FPGetImg(0,pThis->pImgData,2000);
pThis->SendMessage(CX_CAPTEROK);
}
return 0;
}
再while循环中,第一次是能顺利通过,可第二此的时候就在 FPGetImg(0,pThis->pImgData,2000);跳出异常First-chance exception invalid in myclient.ext(NTDLL.DLL):0XC0000008:Invalid handle.想请求大家的帮助?