Re: Exception Handling - help!

From: Jonathan Keljo [MS] (jkeljo_at_online.microsoft.com)
Date: 11/08/04


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
|



Relevant Pages

  • Re: Exception Handling - help!
    ... >> invoked during the user filter would have to be on top of the stack, ... > are you sure these routines have access to the faulting frame? ... >> to treat this as a nested exception. ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Exception Handling - help!
    ... | to also be in Partition I.12.4.2.5, the overview of Exception Handling. ... | filter block - is this true only for inline code, ... | (which it was not when the exception was thrown). ... | nested exception the new exception would have to walk the stack anyway ...
    (microsoft.public.dotnet.framework.clr)
  • Re: DirectShow Transcoding Woes
    ... to assume that the addition of a particular filter ... results in the exception being thrown by RenderFile. ... faults are not supposed to happen and the code ...
    (microsoft.public.win32.programmer.directx.video)
  • ISA2004 Firewall fails to start & event id 14057
    ... a 3rd party filter installed and occasionally I am ... When attempting to start the firewall in the ISA server manager I sometimes ... again saw exception 6D9 messages during module loading as follows: ...
    (microsoft.public.isa.configuration)
  • Re: Exception Handling - help!
    ... Can the nesting be of ... can an exception filter throw an ... | which itself causes another filter to execute, ...
    (microsoft.public.dotnet.framework.clr)

Loading