[Mono-bugs] [Bug 75378][Nor] New - Cross-AppDomain delegate remoting bug

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 25 11:00:23 EDT 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/75378	2005-06-25 11:00:23.000000000 -0400
+++ shadow/75378.tmp.13204	2005-06-25 11:00:23.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 75378
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: remoting
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: kornelpal at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Cross-AppDomain delegate remoting bug
+First of all: Mono has exactly the same behaviour regarding this bug 
+as .NET Framework but I think this is a bug.
+Try the attached test.
+A delegate pointing to an instance method of a [Serializable] class is 
+remoted to a different AppDomain.
+The problem is that the resulting delegate should be a remoting proxy 
+instead of a delegate that executes instance methods in a different 
+AppDomain than it was created.
+Delegates are objects. Delegates are remoted and not the method they 
+point to. So there is nothing that could prevent the expected behaviour.
+This problem may cause unexpected behaviour of the object or even 
+security holes.
+Furthermore GCHandle throws ArgumentException to prevent using object in 
+a different AppDomain than they were created.

More information about the mono-bugs mailing list