[Mono-bugs] [Bug 507003] Error in Assembly.DoAssemblyResolve
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed May 27 06:19:25 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=507003
User sabbadin at sabbasoft.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=507003#c3
--- Comment #3 from enrico sabbadin <sabbadin at sabbasoft.com> 2009-05-27 04:19:24 MDT ---
Now I understand:
I found the origin of the problem: my implementation of the
AssemblyResolveEvent could not resolve a type ..
In MS WIN : i got a stackoverflow (which makes sense somehow) ..
in mono implementation of doassemblyresolve there is a logic that tries to
avoid this loop .. however there is a mistake
you write
ht [name] = name;
and in other part of the method
Assembly ass = (Assembly) ht [name];
so when ht [name] does not return null .. you bomb
FIX:
REPLACE
Assembly ass = (Assembly) ht [name];
-------------
WITH
string ass = ht [name] as string;
in the doassemblyresolve event
best regards
--
Configure bugmail: http://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