[Mono-bugs] [Bug 76757][Nor] Changed - new AppDomains inherit
current loaded assemblies
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jun 14 22:47:15 EDT 2006
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 brian at fluggo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76757
--- shadow/76757 2006-06-14 21:04:15.000000000 -0400
+++ shadow/76757.tmp.22877 2006-06-14 22:47:15.000000000 -0400
@@ -459,6 +459,59 @@
More news as it develops.
------- Additional Comments From brian at fluggo.com 2006-06-14 21:04 -------
Created an attachment (id=17187)
Proposed patch to appdomain.c
+
+------- Additional Comments From brian at fluggo.com 2006-06-14 22:47 -------
+I must be working with some strange builds. The latest test shows the
+correct result.
+
+Executing:
+
+=======================================
+ using System;
+ using System.Reflection;
+
+ namespace Test {
+ public class Program {
+ static void Main() {
+ AppDomain newDomain = AppDomain.CreateDomain( "new" );
+
+ foreach( Assembly assem in newDomain.GetAssemblies() ) {
+ Console.WriteLine( assem.FullName );
+ }
+
+ newDomain.DoCallBack( new CrossAppDomainDelegate(
+NewDomainMethod ) );
+
+ foreach( Assembly assem in newDomain.GetAssemblies() ) {
+ Console.WriteLine( assem.FullName );
+ }
+ }
+
+ public static void NewDomainMethod() {
+ Console.WriteLine( "Hello world!" );
+ }
+ }
+ }
+=======================================
+
+...produces:
+
+=======
+ mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+ Hello world!
+ test, Version=0.0.0.0, Culture=neutral
+ mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089
+=======
+
+...under Mono 1.1.13.8, showing that the new AppDomain is definitely
+created empty *and* that the calling program's assembly is loaded into
+the new AppDomain on executing the CrossAppDomainDelegate.
+
+So what's up with all the CADMessage-whatnot code? I don't know. A
+more careful read-through shows that the CAD-specific proxies might
+not even be in use anymore.
More information about the mono-bugs
mailing list