quot;First-chance exceptionquot; meaning in MFC Application?(“第一次机会例外在 MFC 应用程序中的含义?)
问题描述
当我运行 Windows 应用程序 (MFC) 时,我收到两个警告.
When I run my Windows Application(MFC) I get two Warnings.
XXX.exe 中 0x01046a44 处的第一次机会异常:0xC0000005:访问冲突读取位置 0x00000048.
XXX.exe 中 0x75fdb9bc (KernelBase.dll) 处的第一次机会异常:0x000006BA:RPC 服务器不可用.
我可以知道它们的意思吗?
May I know what they mean?
推荐答案
什么是第一次机会异常?
在调试应用程序时,只要遇到异常,调试器就会收到通知.此时,应用程序被挂起,调试器决定如何处理异常.第一次通过此机制称为第一次机会"异常.根据调试器的配置,它要么恢复应用程序并传递异常,要么将应用程序挂起并进入调试模式.如果应用程序处理了异常,它会继续正常运行.
When an application is being debugged, the debugger gets notified whenever an exception is encountered. At this point, the application is suspended and the debugger decides how to handle the exception. The first pass through this mechanism is called a "first chance" exception. Depending on the debugger's configuration, it will either resume the application and pass the exception on or it will leave the application suspended and enter debug mode. If the application handles the exception, it continues to run normally.
有关详细信息,请参阅这篇文章.
See this Article for more details.
这篇关于“第一次机会例外"在 MFC 应用程序中的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“第一次机会例外"在 MFC 应用程序中的含义?
基础教程推荐
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- CString 到 char* 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
