博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Structured Exception Handling
阅读量:6932 次
发布时间:2019-06-27

本文共 1641 字,大约阅读时间需要 5 分钟。

https://docs.microsoft.com/en-us/windows/desktop/Debug/structured-exception-handling 

 

An exception is an event that occurs during the execution of a program, and requires the execution of code outside the normal flow of control. There are two kinds of exceptions: hardware exceptions and software exceptions. Hardware exceptions are initiated by the CPU. They can result from the execution of certain instruction sequences, such as division by zero or an attempt to access an invalid memory address. Software exceptions are initiated explicitly by applications or the operating system. For example, the system can detect when an invalid parameter value is specified.

Structured exception handling is a mechanism for handling both hardware and software exceptions. Therefore, your code will handle hardware and software exceptions identically. Structured exception handling enables you to have complete control over the handling of exceptions, provides support for debuggers, and is usable across all programming languages and machines. Vectored exception handling is an extension to structured exception handling.

The system also supports termination handling, which enables you to ensure that whenever a guarded body of code is executed, a specified block of termination code is also executed. The termination code is executed regardless of how the flow of control leaves the guarded body. For example, a termination handler can guarantee that clean-up tasks are performed even if an exception or some other error occurs while the guarded body of code is being executed.

 

 

另外可以参考:

https://msdn.microsoft.com/en-us/library/s58ftw19.aspx#Remarks 

转载地址:http://ybmjl.baihongyu.com/

你可能感兴趣的文章
Tcp的三次握手四次挥手
查看>>
bilibili源码泄漏后,程序员们从代码里扒出来的彩蛋
查看>>
Windows上python开发--2安装django框架
查看>>
Linux在root下把环境变量PATH配置错误的解决方法
查看>>
linux系统基础优化
查看>>
ACS5.X -AD-tacacs+ authentication
查看>>
apache与tomcat整合
查看>>
yum update命令升级系统而不更新某些指定软件包
查看>>
我的友情链接
查看>>
phpcms v9二级栏目生成到根目录后三级栏目无法访问的解决办法
查看>>
QDateTime的之前的时间如何获取和QTime简单使用
查看>>
Linux Performance Analysis and Tools(Linux性能分析和工具)
查看>>
深度分析puppet自带filebucket的备份恢复功能
查看>>
什么是SysWow64
查看>>
MAC 修改最大文件打开数
查看>>
FTP用户隔离
查看>>
Oracle数据库ASM磁盘组+ASM2_ARCH使用率高
查看>>
ActiveMq-JMS简单实例使用tomcat
查看>>
医疗信息化 医学信息 医院管理 资料下载
查看>>
10G~11G体系结构图
查看>>