FindWindow(NULL,_T("加载监视器"));和Error: CWinThread.../...0xC0000005: Access Violation.走一起了,呵呵
来源:互联网 发布:centos 编译安装php 编辑:程序博客网 时间:2024/05/17 19:19
HWND hwndJZJSQ = FindWindow(NULL,_T("加载监视器"));
if( IsWindow(hwndJZJSQ) ) PostMessage(hwndJZJSQ, WM_CLOSE, 0, 0);
发现:无论“加载监视器”有无,IsWindows均成立,hwndJZJSQ均有值
第二:在执行接下来的一个子操作函数时,Debug下会引起
Error: CWinThread::PumpMessage called when not permitted.
First-chance exception in DCMS3000Main.exe (MFC42D.DLL): 0xC0000005: Access Violation.
Release版本下,会引起崩溃
Debug下一般都会指向该函数的某一行(GetMessage一般都是返回TRUE的):需要注意的是,下述调试点一般会发现:m_msgCur.msg = 0x10; //也即WM_CLOSE消息,为什么它处理不了???
BOOL CWinThread::PumpMessage()
{
ASSERT_VALID(this);
if (!::GetMessage(&m_msgCur, NULL, NULL, NULL))
{
#ifdef _DEBUG
if (afxTraceFlags & traceAppMsg)
TRACE0("CWinThread::PumpMessage - Received WM_QUIT.\n");
m_nDisablePumpCount++; // application must die
// Note: prevents calling message loop things in 'ExitInstance'
// will never be decremented
#endif
return FALSE;
}
#ifdef _DEBUG
if (m_nDisablePumpCount != 0)
{
TRACE0("Error: CWinThread::PumpMessage called when not permitted.\n");
ASSERT(FALSE);
}
#endif
#ifdef _DEBUG
if (afxTraceFlags & traceAppMsg)
_AfxTraceMsg(_T("PumpMessage"), &m_msgCur);
#endif
// process this message
if (m_msgCur.message != WM_KICKIDLE && !PreTranslateMessage(&m_msgCur))
{
::TranslateMessage(&m_msgCur);
::DispatchMessage(&m_msgCur);
}
return TRUE;
} 第三:调试详情
- FindWindow(NULL,_T("加载监视器"));和Error: CWinThread.../...0xC0000005: Access Violation.走一起了,呵呵
- 0xC0000005: Access Violation
- 0xC0000005: Access Violation
- NTDLL.DLL): 0xC0000005: Access Violation-解决方法
- 0xC0000005: Access Violation 非法访问
- (NTDLL.DLL):0xC0000005:Access Violation
- Unhandled exception 0xC0000005:Access Violation
- Crash Analyzing-- 0xC0000005: Access violation writing location 0x00000010
- 0xC0000005: Access violation reading location 0x00ef1000.
- unhandled exception in .exe :0xC0000005:Access Violation.
- unhandled exception in *.exe (MFC42D.DLL):0xC0000005:Access Violation
- 如何解决MFCO42D.dll 0xC0000005:Access Violation问题
- Unhandled exception in XX.exe:0xC0000005:Access Violation”
- 如何解决 xxx.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
- vc6GDI+合成图片(NTDLL.DLL): 0xC0000005: Access Violation
- Unhandled exception 0xC0000005: Access violation writing location
- 如何解决MFCO42D.dll 0xC0000005:Access Violation问题
- First-chance exception in MFCDibImshow.exe: 0xC0000005: Access Violation.
- 浅谈Java学习方法
- [SAE学习笔记]Storage尝鲜
- logcat不打印信息
- 深入理解C语言指针的奥秘
- 关于ARM9协处理器CP15及MCR和MRC指令
- FindWindow(NULL,_T("加载监视器"));和Error: CWinThread.../...0xC0000005: Access Violation.走一起了,呵呵
- Flex中如何通过addChild()函数在List中显示一个Sprite的例子
- DNS round-robin 失败
- 网站架构(页面静态化,图片服务器分离,负载均衡)方案全解析
- Objective-C Base64编解码
- IEBlog:拥抱WebSockets
- 编译错误syntax error : missing ';' before 'type'
- Ubuntu下有几个C/C++的IDE,现在来对做一下简单的比较
- SQL SERVER 到 MYSQL 迁移存储过程代码改写详细对照表