[Mono-bugs] [Bug 27663][Maj] New - AppDomain fails loading from same dll name different classes

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 Jul 2002 16:35:10 -0000


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 gonzalo@ximian.com.

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

--- shadow/27663	Thu Jul 11 12:35:10 2002
+++ shadow/27663.tmp.29209	Thu Jul 11 12:35:10 2002
@@ -0,0 +1,47 @@
+Bug#: 27663
+Product: Mono/Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AppDomain fails loading from same dll name different classes
+
+Description of Problem:
+
+I create an AppDomain and then an instance of an object using
+domain.CreateInstanceFromAndUnwrap (dll, classname).
+
+Then i change the source file tha generates the dll (just change a string
+literal), compile it and: unload the old domain, create a new one and a new
+instance of the object.
+
+This second object is the same as the first one, though dll is different!!!
+
+
+Steps to reproduce the problem:
+1. Compile attached file domain1.cs and generate a dll for it.
+2. Compile attached file testdomain.cs
+3. Run testdomain.exe (it will wait 1 minute to let you change the ToString
+return value in domain1.cs to return "Domain 2" and compile a new dll)
+
+Actual Results:
+output1: Domain 1
+output2: Domain 1
+
+Expected Results:
+output1: Domain 1
+output2: Domain 2
+
+Additional information:
+If i change the dll in the second attemp and load the same class name, it
+works.