[Mono-bugs] [Bug 425414] New: ThreadException event does not occur
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Sep 11 05:43:35 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=425414
Summary: ThreadException event does not occur
Product: Mono: Class Libraries
Version: SVN
Platform: x86
OS/Version: Windows Vista
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: kobruleht2 at hot.ee
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Observed:
TypeLoadException
Expected:
Exception dialog.
Environment:
VS2008 SP1, .NET 3.5 SP1
Code to reproduce:
using System;
using System.Reflection;
using System.Threading;
using System.Windows.Forms;
class Test
{
static void Main()
{
Application.ThreadException += Application_ThreadException;
Application.Run(new MainForm());
}
class MainForm : Form
{
protected override void OnLoad(EventArgs e)
{
GetStandardEntityType();
base.OnLoad(e);
}
}
public static void GetStandardEntityType()
{
Assembly asm = Assembly.GetEntryAssembly();
asm.GetType("Bad", true);
}
static void Application_ThreadException(object sender,
ThreadExceptionEventArgs e)
{
using (ThreadExceptionDialog dlg = new
ThreadExceptionDialog(e.Exception))
{
dlg.ShowDialog();
}
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list