first-chance exception
来源:互联网 发布:mysql 5.7 配置 编辑:程序博客网 时间:2024/05/16 04:39
The first-chance exception can be ignored because it is safely handled by the operating system.
INFO: First and Second Chance Exception Handling (Q105675)
Structured exception handling (SEH) takes a little getting used to, particularly when debugging. It is common
practice to use SEH as a signaling mechanism. Some application programming interfaces (APIs) register an
exception handler in anticipation of a failure condition that is expected to occur in a lower layer. When the
exception occurs, the handler may correct or ignore the condition rather than allowing a failure to propagate
up through intervening layers. This is very handy in complex environments such as networks where partial
failures are expected and it is not desirable to fail an entire operation simply because one of several optional
parts failed. In this case, the exception can be handled so that the application is not aware that an exception has
occurred.
However, if the application is being debugged, it is important to realize that the debugger will see all exceptions
before the program does. This is the distinction between the first and second chance exception. The debugger
gets the "first chance," hence the name. If the debugger continues the exception unhandled, the program will
see the exception as usual. If the program does not handle the exception, the debugger will see it again
(the "second chance"). In this latter case, the program normally would have crashed had the debugger not
been present.
If you do not want to see the first chance exception in the debugger, then disable the feature. Otherwise, during
execution, when the debugger gets the first chance, continue the exception unhandled and allow the program
to handle the exception as usual. Check the documentation for the debugger that you are using for descriptions
of the commands to be used.
INFO: First and Second Chance Exception Handling (Q105675)
Structured exception handling (SEH) takes a little getting used to, particularly when debugging. It is common
practice to use SEH as a signaling mechanism. Some application programming interfaces (APIs) register an
exception handler in anticipation of a failure condition that is expected to occur in a lower layer. When the
exception occurs, the handler may correct or ignore the condition rather than allowing a failure to propagate
up through intervening layers. This is very handy in complex environments such as networks where partial
failures are expected and it is not desirable to fail an entire operation simply because one of several optional
parts failed. In this case, the exception can be handled so that the application is not aware that an exception has
occurred.
However, if the application is being debugged, it is important to realize that the debugger will see all exceptions
before the program does. This is the distinction between the first and second chance exception. The debugger
gets the "first chance," hence the name. If the debugger continues the exception unhandled, the program will
see the exception as usual. If the program does not handle the exception, the debugger will see it again
(the "second chance"). In this latter case, the program normally would have crashed had the debugger not
been present.
If you do not want to see the first chance exception in the debugger, then disable the feature. Otherwise, during
execution, when the debugger gets the first chance, continue the exception unhandled and allow the program
to handle the exception as usual. Check the documentation for the debugger that you are using for descriptions
of the commands to be used.
- 关于“First-chance exception”
- first-chance exception
- 关于“First-chance exception”
- First Chance Exception
- vs2010:First-chance exception
- First chance exception 与 Second chance exception
- First chance exception 与 Second chance exception
- First and Second Chance Exception
- First Chance Exception是什么东东?
- First Chance Exception是什么东东?
- 不要放过First-chance exception
- Windows异常分发 - First Chance Exception vs Second Chance Exception
- What is a First Chance Exception
- First-chance exception in xxx.exe...异常
- What is a First Chance Exception?
- VC调试程序输出First-chance Exception.
- First-chance exception in Cairo on exit
- First-chance exception at 0x7c812a6b in
- JavaServer Faces框架使用的设计模式
- 选择JSF不选Struts的十大理由
- JavaScript:世界上误解最深的语言
- 上海交通大学2007年部分专业基础课参考书目
- ASP.net在web开发上会胜过java的理由
- first-chance exception
- Microsoft Composite UI App Block使用过程的问题收集(一)
- 用VB 6封装ASP代码, 制作DLL组件
- 电影金刚
- Blog 开张, 纪念一下
- 谈谈Unicode编码[转载]
- C++
- 关于一道J@Whiz1.4的经典问题的说明
- NURBS备忘录(一)