Re: Exception Handling - help!
From: Jonathan Keljo [MS] (jkeljo_at_online.microsoft.com)
Date: 11/08/04
- Next message: Sonja Keserovic [MSFT]: "RE: method pointers vs types initialization"
- Previous message: Jonathan Keljo [MS]: "Re: Exception Handling - help!"
- In reply to: George: "Re: Exception Handling - help!"
- Next in thread: George: "Re: Exception Handling - help!"
- Reply: George: "Re: Exception Handling - help!"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 08 Nov 2004 18:35:53 GMT
Hi George,
On 1, given that a filter can technically call a lot of other functions,
each of which may have finally blocks in them, we really ought to run those
finallies as the authors of those functions expected them to be run.
On 2, exception handling for a handled exception is considered complete
after the leave instruction of the catch block has been executed. The
exception object itself is just like any other object and won't be
discarded until a GC finds no references to it.
Jonathan
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Thread-Topic: Exception Handling - help!
| thread-index: AcTE229KNgVL8jDhSy2tcJr+BBxCsQ==
| X-WBNR-Posting-Host: 129.132.1.4
| From: =?Utf-8?B?R2Vvcmdl?= <George@discussions.microsoft.com>
| References: <DBE66BDF-B746-4077-89EE-8996635E8B78@microsoft.com>
<Oi8ipzTwEHA.4048@TK2MSFTNGP15.phx.gbl>
<8E53C9F9-54C8-4FF9-925A-5FEF78A07018@microsoft.com>
<eYlM7eZwEHA.1408@TK2MSFTNGP10.phx.gbl>
<B81BC8C3-90E4-47BB-BAD1-14AB098DEE44@microsoft.com>
<uqztQ$lwEHA.3624@TK2MSFTNGP09.phx.gbl>
<1BB07850-5E71-4DD2-8469-061E8FA0B2B7@microsoft.com>
<wJHHlm5wEHA.1288@cpmsftngxa10.phx.gbl>
| Subject: Re: Exception Handling - help!
| Date: Sun, 7 Nov 2004 07:07:01 -0800
| Lines: 17
| Message-ID: <060D7E64-5D46-4EE5-888A-437BF3DD28F4@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.clr
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:12208
| X-Tomcat-NG: microsoft.public.dotnet.framework.clr
|
| Hi Jonathan,
|
| I would dare to ask you two more questions:)
|
| 1. If an inner exception cannot escape from the filter of the outer
| exception, can't we just discard the inner exception before executing its
| second pass?
|
| 2. when is discarded a “handled“ outer exception?
|
| My expected answer: in the suitable catch or filter handler upon the
“leave”
| instruction.
|
| Thank you very much in advance!
|
| Best regards,
| George
|
- Next message: Sonja Keserovic [MSFT]: "RE: method pointers vs types initialization"
- Previous message: Jonathan Keljo [MS]: "Re: Exception Handling - help!"
- In reply to: George: "Re: Exception Handling - help!"
- Next in thread: George: "Re: Exception Handling - help!"
- Reply: George: "Re: Exception Handling - help!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|