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=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 [EMAIL PROTECTED] 2006-06-14 21:04 ------- Created an attachment (id=17187) Proposed patch to appdomain.c + +------- Additional Comments From [EMAIL PROTECTED] 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
