Windows has triggered a breakpoint in xxxxx.exe
2010-03-25 08:45
260 查看
VS2005 英文版 SP1
XP SP3
在debug调试运行时,程序还没跑起来,就跳出一个错误说:Windows has triggered a breakpoint in xxxxx.exe,
点击continue后又可以断续debug下去,程序也可以跑起来(跑起来时m_fTemp这个值明明在构造函数时已经赋值过了,却在别的地方用时却没有赋上值(其它几个成员变量也有类似的情况)),但关掉程序时就会报错。
不断把刚添加进去的代码一行行的注释掉,看是哪里的问题,
找到了那行代码,是在类构造函数中对一个成员变量m_fTemp赋值时出错,但按照语法,这也不应该错啊。
后来Rebuild Solution就可以了。
可能原因:这个程序是我从备份中解压出来的,如果没有Rebuild Solution,由于环境的变化,工程的其它一些文件还是以前的文件,而我调试时只是按F7,可能只是所谓的“增量编译”,有修改代码的地方有重新编译生成新文件,但没有改动的地方可能还是用旧的文件,所以造成了一些奇怪的错误。
XP SP3
在debug调试运行时,程序还没跑起来,就跳出一个错误说:Windows has triggered a breakpoint in xxxxx.exe,
点击continue后又可以断续debug下去,程序也可以跑起来(跑起来时m_fTemp这个值明明在构造函数时已经赋值过了,却在别的地方用时却没有赋上值(其它几个成员变量也有类似的情况)),但关掉程序时就会报错。
不断把刚添加进去的代码一行行的注释掉,看是哪里的问题,
找到了那行代码,是在类构造函数中对一个成员变量m_fTemp赋值时出错,但按照语法,这也不应该错啊。
后来Rebuild Solution就可以了。
可能原因:这个程序是我从备份中解压出来的,如果没有Rebuild Solution,由于环境的变化,工程的其它一些文件还是以前的文件,而我调试时只是按F7,可能只是所谓的“增量编译”,有修改代码的地方有重新编译生成新文件,但没有改动的地方可能还是用旧的文件,所以造成了一些奇怪的错误。
相关文章推荐
- Windows has triggered a breakpoint in xxxxx.exe.
- Windows has triggered a breakpoint in xxx.exe
- Windows has triggered a breakpoint in xxx.exe
- Windows has triggered a breakpoint in ***.exe.
- 解决 Windows has triggered a breakpoint in Linkage.exe问题
- Microsoft Visual Studio 中出现 Windows has triggered a breakpoint in xxx.exe的一个解决方案
- vs2010 遇 “堆损坏”问题: 无编译错误,提示:Windows has triggered a breakpoint in **.exe....
- 使用opencv旋转图像时出现错误:windows has triggered a breakpoint in test.ext
- Error:.exe has triggered a breakpoint.
- Windows has triggered a breakpoint
- Windows has triggered a breakpoint
- windows 中使用hbase 异常:java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- windows环境开发,使用hbase报错。Could not locate executablenull\bin\winutils.exe in the Hadoop binaries
- Source Insight in Ubuntu+Windows+Samba:has been changed outside of the editor. Do you want to reload the file?
- Windows has trigger a breakpoint
- 在windows 2003 上安装wamp,报exception in module wampmanager.exe at 000F15A0错误解决办法
- [Fixed] Whoa! Google Chrome has Crashed error in Windows®
- windows环境开发,使用hbase报错。Could not locate executablenull\bin\winutils.exe in the Hadoop binaries
- install aspnet_regiis.exe for aspx execution in Windows XP sp2
- Windows cannot find 'wuapp.exe' issue in Windows 10 Pro