[Mono-bugs] [Bug 80392][Wis] Changed - [2.0] AsyncResult should check owner.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 28 22:49:19 EST 2006


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 miguel at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80392

--- shadow/80392	2006-12-28 22:42:18.000000000 -0500
+++ shadow/80392.tmp.12014	2006-12-28 22:49:18.000000000 -0500
@@ -11,13 +11,13 @@
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: alan.mcgovern at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: AsyncResult broken
+Summary: [2.0] AsyncResult should check owner.
 
 An invalid operation exception should be thrown when i pass an AsyncResult
 from one object into the EndXXX of another object. Mono doesn't care. This
 can be a very bad thing.
 
 Run the attached testcase. In MS.NET an InvalidOperation exception is
@@ -75,6 +75,13 @@
 NotUsed, MessageData& msgData)
    at System.IO.Stream.ReadDelegate.EndInvoke(IAsyncResult result)
    at System.IO.Stream.EndRead(IAsyncResult asyncResult)
    at System.IO.FileStream.EndRead(IAsyncResult asyncResult)
    at Borked.Main(String[] args)
 You should have seen an exception
+
+------- Additional Comments From miguel at ximian.com  2006-12-28 22:48 -------
+This would be only a 2.0 feature, and since we are calling the runtime
+generated BeginXXX method from the delegate, this probably will have
+to be checked in RealProxy.PrivateInvoke in corlib.
+
+


More information about the mono-bugs mailing list