[Mono-bugs] [Bug 328830] New: BackgroundWorker: RunWorkerCompletedEventArgs. Result should rethrow exception from DoWork
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Sep 27 04:45:51 EDT 2007
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: mono-bugs at ximian.com
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at ximian.com
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.
More information about the mono-bugs
mailing list