[Mono-bugs] [Bug 432440] New: legacyUnhandledExceptionPolicy node in app config ignored in 1.9.1
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Oct 5 20:35:57 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=432440
Summary: legacyUnhandledExceptionPolicy node in app config
ignored in 1.9.1
Product: Mono: Runtime
Version: 1.9
Platform: Other
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: JIT
AssignedTo: lupus at novell.com
ReportedBy: john.spurlock at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Overview Description:
The application config node legacyUnhandledExceptionPolicy is meant to
drive whether or not an unhandled exception terminates the process in 2.0. If
enabled ("1"), it should keep going - like 1.1 did.
Steps to Reproduce:
1) Create a new console application, use the following config...
<configuration>
<runtime>
<legacyUnhandledExceptionPolicy enabled="1"/>
</runtime>
</configuration>
... and the following code in Main...
ThreadStart alive = delegate
{
while (true)
{
Thread.Sleep(2000);
Console.WriteLine("still alive...");
}
};
alive.BeginInvoke(null, null);
AppDomain.CurrentDomain.UnhandledException += delegate(object o,
UnhandledExceptionEventArgs e)
{
Exception ex = e.ExceptionObject as Exception;
Console.WriteLine("Unhandledexception:" + ex.Message);
};
ThreadStart throws = delegate
{
Thread.Sleep(3000);
throw new ArgumentException();
};
new Thread(throws).Start();
Thread.Sleep(5000);
Actual Results:
still alive...
Unhandledexception:Value does not fall within the expected range.
(process exit)
Expected Results:
still alive...
Unhandledexception:Value does not fall within the expected range.
still alive...
This is the behavior using the MS runtime.
Build Date & Platform:
1.2.6 and 1.9.1 on mac os x and ubuntu linux
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list