【100】程序在AfxInternalPumpMessage处中断提示错误是内存访问异常,求大神帮忙看一下
>mfc90d.dll!AfxInternalPumpMessage() 行183C++
mfc90d.dll!CWinThread::PumpMessage() 行900C++
mfc90d.dll!AfxPumpMessage() 行190 + 0xd 字节C++
mfc90d.dll!CWnd::RunModalLoop(unsigned long dwFlags=4) 行4386 + 0x5 字节C++
mfc90d.dll!CDialog::DoModal() 行584 + 0xc 字节C++
ImageTesting.exe!CImageTestingApp::InitInstance() 行95 + 0xb 字节C++
mfc90d.dll!AfxWinMain(HINSTANCE__ * hInstance=0x002e0000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00b36ab1, int nCmdShow=1) 行37 + 0xd 字节C++
ImageTesting.exe!WinMain(HINSTANCE__ * hInstance=0x002e0000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00b36ab1, int nCmdShow=1) 行30C++
ImageTesting.exe!__tmainCRTStartup() 行574 + 0x35 字节C
ImageTesting.exe!WinMainCRTStartup() 行399C
以上是调用堆栈显示的信息
那就检查拖拽图片的代码为什么会跳到app的InitInstance函数呢?
也许是栈信息被破坏了?
拖拽图片的代码,你可以一段一段试着注释掉,看哪些代码会引起程序运行错误。