swjj 2002年01月24日
有关多线程的中有些线程无法回应的问题

如该线程超时,我用终止它

但同时出现下面的报错



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).
...全文
29 点赞 收藏 3
写回复
3 条回复

还没有回复,快来抢沙发~

发动态
发帖子
非技术类
创建于2007-09-28

1477

社区成员

5.9w+

社区内容

VC/MFC 非技术类
社区公告
暂无公告