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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82276 --- shadow/82276 2007-08-01 11:10:29.000000000 -0400 +++ shadow/82276.tmp.643 2007-08-01 11:10:29.000000000 -0400 @@ -0,0 +1,46 @@ +Bug#: 82276 +Product: Mono: Runtime +Version: 1.0 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: misc +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: using assembly load hooks can lead to runtime crashes + +Testcase: +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +using System; +using System.Reflection; + +class Tests { + + static void AssemblyLoadHandler(Object ob, AssemblyLoadEventArgs +args) { + args.LoadedAssembly.GetTypes (); + } + + static void Main () + { + AppDomain domain = AppDomain.CurrentDomain; + + domain.AssemblyLoad += new +AssemblyLoadEventHandler(AssemblyLoadHandler); + + AssemblyName aname = new AssemblyName (); + aname.Name = "System"; + Assembly.Load (aname).GetTypes (); + } +} +>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> + +What happens here is that we invoke managed code from inside of metadata +code, and the managed code can see partially initialized runtime structures. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
