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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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. + + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
