[Mono-bugs] [Bug 70564][Maj] New - Assembly preload hook gets called too frequently

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 14 Dec 2004 14:36:00 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by ymeng@bloomberg.net.

http://bugzilla.ximian.com/show_bug.cgi?id=70564

--- shadow/70564	2004-12-14 14:36:00.000000000 -0500
+++ shadow/70564.tmp.29137	2004-12-14 14:36:00.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 70564
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: Windows XP
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ymeng@bloomberg.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Assembly preload hook gets called too frequently
+
+When user registers an assembly preload hook using
+mono_install_assembly_preload_hook(). The callback functions gets called
+over and over even though the assembly was already loaded successfully. We
+often see a dozen preload callbacks for mscorlib during the execution of a
+very simple app.  
+
+The same happens when we try to handle assembly resolve event in managed
+code. e.g.:		myDomain.AssemblyResolve +=
+		        new ResolveEventHandler(myResolveAssembly);
+
+The AssemblyResolve event gets fired gain and again. My colleage who did
+the same with Microsoft CLR noticed this doesn't happen in the MS runtime.