调用回调函数出现或者大循环出现has triggered a breakpoint
2016-11-11 16:30
337 查看
triggered a breakpoint 的意思是触发一个断点。
这个问题一般发生在程序运行过程中。
下面是错误发生显示的信息:
Windows has triggered a breakpoint in xxx.exe.
This may be due to a corruption of the heap, which indicates a bug in xxx.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while t.exe has focus.
The output window may have more diagnostic information.
这个错误发生的两个原因:
1.用delete或是free删除不是堆栈上的变量。
比如:
int n = 88;
delete n;
2.使用了已经delete或是free后的变量。
比如:
char *str = (char *) malloc(100); strcpy(str, "hello"); free(str); if(str != NULL) { strcpy(str, "world"); printf(str); }
相关文章推荐
- Microsoft Visual Studio 中出现 Windows has triggered a breakpoint in xxx.exe的一个解决方案
- 当安装好Xgboost后当调用其函数出现``` AttributeError: module 'xgboost' has no attribute 'feature_importance_'
- android4.4 webview调用javascript出现Uncaught ReferenceError: is not define或者has no method
- 使用opencv旋转图像时出现错误:windows has triggered a breakpoint in test.ext
- Windows has triggered a breakpoint
- 解决 Windows has triggered a breakpoint in Linkage.exe问题
- Windows has triggered a breakpoint in xxxxx.exe
- Outlook 2010 “加载项执行错误。调用“Microsoft Exchange 加载项”加载项时,在“IDTExtensibility2”接口回调“OnConnection”期间,Outlook 出现故障”问题
- 调用CoCreateInstance 函数创建IGraphBuilder 返回值-2147221008 出现错误--directx9 directshow
- vb.net语言调用dll函数出现“读取或写入受保护内存。这通常指示其他内存已损坏。”
- JNI实现回调| JNI调用JAVA函数|参数和返回值的格式
- VB调用DLL导出函数出现"Bad DLL call convention"的解决
- 函数调用的时候出现不同的js调用方法
- JNI实现回调| JNI调用JAVA函数|参数和返回值的格式
- nativa java里面定义了函数,在JNI里面也实现了,函数名参数什么的都没有错,调用native函数是怎么就出现链接失败的情况呢???
- c++调用shell 或者dos命令—使用system函数
- Web Service调用出现:The maximum message size quota for incoming messages (65536) has been exceeded....错误
- dll的输出函数使用__stdcall调用约定后,客户端用GetProcAddress出现的问题!
- 解决SQL Server 2008安装时出现不能在控件上调用 Invoke 或 BeginInvoke错误或者需要重启N次后还提示需要重启的方法
- Fortran与C混合编程,C调用Fortran函数,Fortran再回调C中的函数