读书人

vs2010中debug assertion failed 的有

发布时间: 2012-05-29 12:16:00 作者: rapoo

vs2010中debug assertion failed 的问题
程序编译通过,运行是弹出
Debug Assertion Failed!
File: f:\dd\vctools\vc7libs\atlmfc\src\mfc\docmgr.cpp

Line:260
For information on how your program can cause an assertion failure, see the Visual C++ documenation on asserts


我单步调试进入到appmudol.cpp的
#pragma warning(suppress: 4985)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}
的return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);弹出次对话框!
求教是什么问题啊!

[解决办法]
界面相关的assert多是窗口句柄无效。
问题得在你自己写的源码里查找。

读书人网 >C++

热点推荐