程序出现一个莫名其妙的错误,调试后,发现错误的地方出现在WINMAIN.cpp中,下面是出错地方的代码:
if (!pThread->InitInstance())
{
if (pThread->m_pMainWnd != NULL)
{
TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");
pThread->m_pMainWnd->DestroyWindow();
}
nReturnCode = pThread->ExitInstance();
goto InitFailure;
}提示的错误信息为: Unhandled exception in Ploting.exe(NTDLL.DLL) :0xC0000005: Access Violation
(Ploting 是我的工程名) 很急,盼望哪位高手能帮忙解决。在线等啊!
if (!pThread->InitInstance())
{
if (pThread->m_pMainWnd != NULL)
{
TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");
pThread->m_pMainWnd->DestroyWindow();
}
nReturnCode = pThread->ExitInstance();
goto InitFailure;
}提示的错误信息为: Unhandled exception in Ploting.exe(NTDLL.DLL) :0xC0000005: Access Violation
(Ploting 是我的工程名) 很急,盼望哪位高手能帮忙解决。在线等啊!
{
if (pThread->m_pMainWnd != NULL)
{
TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");
pThread->m_pMainWnd->DestroyWindow();
}
nReturnCode = pThread->ExitInstance();//应该是这一句有问题
goto InitFailure;
}学习