This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 37547 - Exception in unhandled exception handler not catched after Thread.Abort
Summary: Exception in unhandled exception handler not catched after Thread.Abort
Status: RESOLVED DUPLICATE of bug 32508
Alias: None
Product: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-09 20:06 UTC by Alexander Köplinger
Modified: 2016-01-25 11:05 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test.cs (765 bytes, text/plain)
2016-01-09 20:06 UTC, Alexander Köplinger
Details

Description Alexander Köplinger 2016-01-09 20:06:44 UTC
Created attachment 14514 [details]
test.cs

Compile attached repro code:

> mcs test.cs

Run it:

> mono test.exe

This results in the following output:

> About to throw exception.
> Catched exception: From OnUnhandledException
> exception inside UnhandledException handler: 

As you can see, the code after the catch in the unhandled exception handler wasn't executed.
Additionally the default behavior of printing an unhandled exception isn't shown as well.

On MS.NET the following expected output is printed:

> About to throw exception.
> Catched exception: From OnUnhandledException
> After catch
>
> Unhandled exception: System.Exception: From OnCBFinished
> [ .. stack trace ..]
Comment 1 Ludovic Henry 2016-01-25 11:05:23 UTC

*** This bug has been marked as a duplicate of bug 32508 ***

Note You need to log in before you can comment on or make changes to this bug.