返回信息流一个C/S通信程序,编译链接都通过了,运行时出现如下错误:
Debug Assertion Failed!
Program:E:\C++\NetClient\Debug\NetClientView.exe
File:appui1.cpp
Line:143
For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
点击 重试->调试后,错误箭头指示到VC++中\MFC\SRC\APPUI1.CPP下述程序段中标红的行
int AFXAPI AfxMessageBox(UINT nIDPrompt, UINT nType, UINT nIDHelp)
{
CString string;
if (!string.LoadString(nIDPrompt))
{
TRACE1("Error: failed to load message box prompt string 0x%04x.\n",
nIDPrompt);
ASSERT(FALSE);
}
if (nIDHelp == (UINT)-1)
nIDHelp = nIDPrompt;
return AfxMessageBox(string, nType, nIDHelp);
}
请问这是什么原因引起的,该怎么解决
这是一条镜像帖。来源:北邮人论坛 / cpp / #8366同步于 2008/6/10
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
请教
ZHWL
2008/6/10镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
This macro asserts an expression and produces a DebugBreak if the expression is FALSE.
只看这个是看不出来的
你看看出错时候的CallStack
找到你自己的函数
再Debug吧
【 在 ZHWL (阳光普照) 的大作中提到: 】
: 一个C/S通信程序,编译链接都通过了,运行时出现如下错误:
: Debug Assertion Failed!
: Program:E:\C++\NetClient\Debug\NetClientView.exe
: ...................