[Mono-bugs] [Bug 76757][Nor] New - Major bug on AppDomain, new AppDomains inherit current loaded assemblies

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Nov 19 02:07:46 EST 2005


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 spigaz at gmail.com.

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

--- shadow/76757	2005-11-19 02:07:46.000000000 -0500
+++ shadow/76757.tmp.20902	2005-11-19 02:07:46.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 76757
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: spigaz at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Major bug on AppDomain, new AppDomains inherit current loaded assemblies
+
+Description of Problem:
+When a new AppDomain is created, for some nasty reason he is picking up the
+assemblies already loaded by the current appdomain.
+
+Steps to reproduce the problem:
+1. Insert into a file:
+using System;
+using System.Reflection;
+
+public class Test
+{
+  public static void Main(string[] args)
+  {
+    AppDomain domain = AppDomain.CreateDomain("Test");
+
+    foreach(Assembly assembly in domain.GetAssemblies())
+      System.Console.WriteLine("Assembly " + assembly);
+
+  }
+}
+
+2. Compile it with mcs or gmcs.
+3. Now run on mono.
+
+Actual Results:
+Assembly mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+Assembly teste, Version=0.0.0.0, Culture=neutral
+
+
+Expected Results:
+Assembly mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+After hours of checking the MS documentation for this behaviour I started
+to suspect that it was a bug, so I downloaded .Net 2.0 and  tested on it
+and it worked just fine.
+
+I need help on this. Can anyone point me a workaround?


More information about the mono-bugs mailing list