[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 15:44:03 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 joe at otee.dk.


--- shadow/82510	2007-08-21 15:40:27.000000000 -0400
+++ shadow/82510.tmp.5425	2007-08-21 15:44:03.000000000 -0400
@@ -101,6 +101,18 @@
 ------- Additional Comments From vargaz at gmail.com  2007-08-21 15:40 -------
 The crash itself is caused by a reference counting problem. When we
 unload the domain, we unload the System.Xml.dll image as well, which is
 still referenced by test.exe.
+------- Additional Comments From joe at otee.dk  2007-08-21 15:44 -------
+Very revealing post.
+I modified the sample so that loading of the assembly happens inside 
+RegisterCreatedDomainID but the invocation of the DoException code is still done after 
+This seems to work around the assert!
+So it seems the issue comes from loading the assembly outside of managed code and not 
+from mono_set_domain and invoking the method.

More information about the mono-bugs mailing list