Chinaunix首页 | 论坛 | 博客
  • 博客访问: 18113095
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: C/C++

2008-05-31 08:23:50

Debug Assertion Failed!
Program:E:\\Imageprocessing\\debug\\Imageprocessing.exe
Files:dbghead.c
Line:1044

For information on how your program can cause an assertion failure,see
the Visual C++ documentation on asserts.

(Press Retry to debug the application)

这样的错误,一般就是内存的错误!首先要在你利用new分配内存的语句中看是否有误! 

另外,尝试:你的有关内存的操作有误,原则重试(Retry)按钮,调出调用堆栈(Alt+F7(如果使用VC6风格)),看一下是哪一个内存操作调用产生!
在\"工程\"->\"设置\"->\"C/C++\"中,分类选\"General\"将预处理程序定义中的\"_DEBUG\" 改为\"NDEBUG\",然后在分类中选择\"Preprocessor\"中在\"未定义符号\"中加入\"_DEBUG\"后程序就可以编译。

阅读(436) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~