[Mono-bugs] [Bug 373153] Incorrect behavior of BackgroundWorker.CancelAsync()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 16 12:27:23 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=373153

User jpobst at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=373153#c8


Jonathan Pobst <jpobst at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                                        |RESOLVED
         Resolution|                                                |FIXED




--- Comment #8 from Jonathan Pobst <jpobst at novell.com>  2008-07-16 10:27:23 MDT ---
Committed in r108039.  Thanks for the report and patch!

2008-07-16  Jonathan Pobst  <monkey at jpobst dot com>

        Apply patches from Jordan Callicoat (MonkeeSage at gmail dot com)

        * AsyncCompleteEventArgs.cs: RaiseExceptionIfNecessary should throw
        TargetInvocationException if there was an exception, and IOE if
        the operation was cancelled.
        * BackgroundWorker.cs: Do not call RunWorkerCompleted from CancelAsync,
        setting cancel_pending to true is enough.
        * RunWorkerCompletedEventArgs.cs: Raise exceptions when user tries
        to access the Result if there are any exceptions.
        [Fixes bugs #328830 and 373153]

2008-07-16  Jonathan Pobst  <monkey at jpobst dot com>

        * BackgroundWorkerTest.cs: Add tests for bugs 328830 and 373153.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list