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=82510 --- shadow/82510 2007-08-21 12:07:31.000000000 -0400 +++ shadow/82510.tmp.883 2007-08-21 12:34:56.000000000 -0400 @@ -43,6 +43,24 @@ ------- Additional Comments From [EMAIL PROTECTED] 2007-08-21 12:07 ------- RegisterDomain is called inside the Main function. The Main function is invoked through ExecuteAssembly. You have to call RegisterDomain in Main or another function called through remoting otherwise mono_domain_get will not return the newly created domain. + +------- Additional Comments From [EMAIL PROTECTED] 2007-08-21 12:34 ------- +It would be easier to invoke the code in the other domain from +managed code as well, ie. invoke the 'invoke' from C code. That way +you would not need to deal with domains at all from C code. + +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< + public static void invoke () { + gActiveDomain.DoCallBack (invoke_callback); + } + + public static void invoke_callback () { + Console.WriteLine ("invoke"); + Assembly a = Assembly.LoadFrom ("test.exe"); + Type t = a.GetType ("MonoEmbed"); + t.GetMethod ("DoException").Invoke (null, null); + } +<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
