https://bugzilla.novell.com/show_bug.cgi?id=328830
Summary: BackgroundWorker: RunWorkerCompletedEventArgs.Result
should rethrow exception from DoWork
Product: Mono: Class Libraries
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
Created an attachment (id=175066)
--> (https://bugzilla.novell.com/attachment.cgi?id=175066)
Repro
>From RunWorkerCompletedEventArgs.Result page at MSDN
http://msdn2.microsoft.com/en-gb/library/System.ComponentModel.RunWorkerCompletedEventArgs.Result.aspx:
If an exception was raised or if the operation was canceled,
accessing the Result property raises an exception.
I was just modifying some of my code to move exception handling out of DoWork
into RunWorkerCompleted and found that I didn't get any exceptions re-thrown on
Mono. I was surprised to find on MSFT that the exception is wrapped in a
TargetInvocationException when rethrown. See attached repro.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs