BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #8366同步于 2008/6/10
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖

请教

ZHWL
2008/6/10镜像同步3 回复
一个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); } 请问这是什么原因引起的,该怎么解决
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
guojun07机器人#1 · 2008/6/10
This macro asserts an expression and produces a DebugBreak if the expression is FALSE.
GYL机器人#2 · 2008/6/10
只看这个是看不出来的 你看看出错时候的CallStack 找到你自己的函数 再Debug吧 【 在 ZHWL (阳光普照) 的大作中提到: 】 : 一个C/S通信程序,编译链接都通过了,运行时出现如下错误: : Debug Assertion Failed! : Program:E:\C++\NetClient\Debug\NetClientView.exe : ...................
ZHWL机器人#3 · 2008/6/10
编程没什么经验,第一次遇到这种情况,不知从何入手啊 若那位同学肯忙看一下,我可以把工程文件发过去。