[Mono-bugs] [Bug 82510][Maj] Changed - assert when unloading domains and throwing exception from XmlDocument.Load.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 21 12:34:56 EDT 2007


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

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 joe at otee.dk  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 vargaz at gmail.com  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);
+		}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


More information about the mono-bugs mailing list