[Mono-bugs] [Bug 337467] New: Duplicate assemblyresolve events
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Oct 29 07:03:29 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=337467
Summary: Duplicate assemblyresolve events
Product: Mono: Class Libraries
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at ximian.com
ReportedBy: kobruleht2 at hot.ee
QAContact: mono-bugs at ximian.com
Found By: ---
To reproduce, run code below
Observed:
AssemblyResolve event fires two times
Expected:
AssemblyResolve event should fires once
Environment:
Windows XP SP2 Estonian regional settings
Application compiled with VCSE 2005 in Windows
NET 2
MONO 1.2.5
using System;
using System.Windows.Forms;
using System.Reflection;
static class Program {
static void Main() {
MessageBox.Show("Test");
try {
AppDomain.CurrentDomain.AssemblyResolve += new
ResolveEventHandler(CurrentDomain_AssemblyResolve);
Assembly.Load("NotexistingAssembly");
}
catch (Exception ex) {
MessageBox.Show(ex.ToString());
}
}
static Assembly CurrentDomain_AssemblyResolve(object sender,
ResolveEventArgs args) {
MessageBox.Show(args.Name);
return null;
}
}
--
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