Implementation principle of try/catch-go

Source: Internet
Author: User
Turn: implementation principle of try/catch

1. Try/catch of VC ++ is implemented based on Win32 Seh.

2. Try/catch can only catch exceptions of the current thread. Each thread has its own exception handling entry.

3. The exception handling portal is called by the OS when an exception occurs.

4. To use Seh, the VC ++ compiler automatically generates a lot of code.

Classic seh article on msdn

A crash course on the depths of Win32 structured exception handling

Http://www.microsoft.com/msj/0197/exception/exception.aspx

In-depth exploration of Win32 structured exception handling

Http://blog.csdn.net/diamont/archive/2009/06/11/4259590.aspx

Simulation Implementation on codeproject

How a C ++ compiler implements Exception Handling

CLR implementation

The exception Model


This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/optman/archive/2008/06/03/2508323.aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.