用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
wishfly的公告
只为文摘,不为传播。 版权就不一一声明了。 在此一并感谢原文作者。
文章分类
blog
Linux那些事儿
anytao(.Net)
caimouse
Chrome源码剖析
chrome源码解析系列
com 深入理解
Forefront Edge Security
houdy
jdon
junguo的专栏
optman的专栏
ouyang2008的专栏
shrekmu
Vincent F. Yang(杨枫)
云风的 BLOG
周公的专栏
奋斗,我一生的主题
寒星轩
快乐虾
思归呓语
晨光
智慧的鱼(DirextX)
李先静
毛文波
热力西雅图
白杨
程序即人生
第二人生的源码分析
胡长城
蝈蝈俊.net
许式伟的专栏
阿波的专栏
陆其明's Blog
黄国强
ISA
Forefront team blog
pingdom
linux
Linux内核之旅
陈莉君
产品
bugfree
工具
List of mergers and acquisitions by Microsoft
技术
ben point
chinaunix
Chris Gould's Linux Kernel Architecture
Chrome sourcecode
directshow
directshow.cn
Eric
Forefront Edge Security Forums
Forefront TMG (ISA Server) Product Team Blog
google
ibm - linux
joel on software
joyfire.net
kernel.org
linuxforum
lucene
OpenSolaris User Group
SQL WHERE Clause
中国协议分析网
利索脚
海迪
其他
存档

转载  try/catch的实现原理 收藏

明白了几个道理,

1. VC++的try/catch是基于Win32的SEH实现的。

2. try/catch只能捕捉当前线程的异常,每个线程都有自己的异常处理入口。

3. 异常处理入口是由OS负责调用的,在异常发生时。

4. 为了使用SEH,VC++编译器自动生成了很多的代码。

MSDN上关于SEH的经典文章

A Crash Course on the Depths of Win32™ Structured Exception Handling
 

CodeProject上的模拟实现

How a C++ compiler implements exception handling
 

CLR的实现

The Exception Model

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/optman/archive/2008/06/03/2508323.aspx

发表于 @ 2009年07月12日 12:54:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:linux文件系统基础知识 | 新一篇:COM套间模型的相关文章

  • 发表评论
  • 评论内容:
  •  
Copyright © wishfly
Powered by CSDN Blog