[Mono-bugs] [Bug 75377][Min] Changed - Marshaling should not allow delegates to change AppDomains

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 7 13:38:33 EST 2005

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 kornelpal at hotmail.com.


--- shadow/75377	2005-06-28 13:19:06.000000000 -0400
+++ shadow/75377.tmp.23955	2005-11-07 13:38:33.000000000 -0500
@@ -182,6 +182,18 @@
 Unfortunately we have to do what they will do in the final version 
 unless it can be considered to be a bug in their implementation.
 But throwing an exception is not a bug just comfortable fix (for 
 their programmers) without work.
+------- Additional Comments From kornelpal at hotmail.com  2005-11-07 13:38 -------
+I tested MS.NET 2.0 runtime behavior and I got the following result:
+In the case where Mono and MS.NET 1.x currently shows BUG in the 
+test case, code is not executed using MS.NET 2.0 as 
+Marshal.PtrToStructure throws NotSupportedException: "Delegates 
+cannot be marshaled from native code into a domain other than their 
+home domain."
+I don't like this behavior, but this is much secure and better than 
+MS.NET 1.x behavior so this should be done by Mono runtime as well.

More information about the mono-bugs mailing list