Windows has triggered a breakpoint in xxxxx.exe.
来源:互联网 发布:wpf编程宝典c 2012 编辑:程序博客网 时间:2024/05/17 04:12
Windows has triggered a breakpoint in xxxxx.exe.
This may be due to a corruption of the heap, and indicates a bug in
xxxxx.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
今天晚上老是出现这个问题。
第一次是读写文件时,使用了函数 FileHelperFunc::GetLine(FILE* fp, char* pBuffer) ,然后fclose()时就出现这个错误,第二个参数传的是CString 然后再getbuffer,这样就出错,但用char*就没问题,不知道为什么,只能把路径都改成char*了。
第二次是 char*类型的变量赋值时出错,当给这个指针new了空间后,然后直接把字符串的值赋给它,就出错,如m_pStr = "error", 这样就出错,但用sprintf_s就可以通过。
网上看了下,应该是内存操作出问题了,内存这个东西真复杂
- Windows has triggered a breakpoint in xxxxx.exe
- Windows has triggered a breakpoint in xxxxx.exe.
- Windows has triggered a breakpoint in ***.exe.
- 解决 Windows has triggered a breakpoint in Linkage.exe问题
- Windows has triggered a breakpoint in xxx.exe
- Windows has triggered a breakpoint in xxx.exe
- Windows has triggered a breakpoint in XXX.exe.
- Windows has triggered a breakpoint
- Windows has triggered a breakpoint
- vs2010 遇 “堆损坏”问题: 无编译错误,提示:Windows has triggered a breakpoint in **.exe....
- Error:.exe has triggered a breakpoint.
- 使用opencv旋转图像时出现错误:windows has triggered a breakpoint in test.ext
- Windows has trigger a breakpoint
- AN ERROR OCCURRED IN A TRIGGERED SQL -723
- set a breakpoint in malloc_error_break to debug
- set a breakpoint in malloc_error_break to debug
- QT编译,一直循环报错:file“xxxxx”has modification times xxxxx s in the future..
- Export op results in error "EXP.EXE has encountered a problem and needs to
- 使用WebView避免显示的大篇内容排版混乱
- 1.1存储用于测试用例的数据
- Java多线程产生死锁的原因和解决方法
- 写给浮躁的自己
- 新开博客
- Windows has triggered a breakpoint in xxxxx.exe.
- 高级线程开发(线程池、资源封锁和队列)
- java中replace和replaceAll的区别
- 重建二叉树
- Java平台上进行多线程编程的缺陷
- Java求两个数的最大公约数最小公倍数
- 求一个字符串中连续出现次数最多的子串
- 1.2读入测试用例的数据
- 数据加密