有关多线程的中有些线程无法回应的问题
swjj 2002-01-24 10:39:09
如该线程超时,我用终止它
但同时出现下面的报错
LRESULT CALLBACK _AfxMsgFilterHook(int code, WPARAM wParam, LPARAM lParam)
{
CWinThread* pThread;
if (afxContextIsDLL || (code < 0 && code != MSGF_DDEMGR) ||
(pThread = AfxGetThread()) == NULL)
{
return ::CallNextHookEx(_afxThreadState->m_hHookOldMsgFilter,
code, wParam, lParam);
}
ASSERT(pThread != NULL);//////////////该处出错
return (LRESULT)pThread->ProcessMessageFilter(code, (LPMSG)lParam);
}
/////////////以上是在\mfc\src\thrdcode.cpp 中的内容
/////以下是报错界面
Warning: throwing CInternetException for error 12017
The thread 0xFFF7B18D has exited with code -3 (0xFFFFFFFD).
First-chance exception in InfoNotice.exe (BCCORE.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in InfoNotice.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in InfoNotice.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in InfoNotice.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in InfoNotice.exe: 0xC0000005: Access Violation.
The program 'C:\aa1.exe' has exited with code 0 (0x0).