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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 27 18:01:56 EDT 2008


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

User MonkeeSage at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=373153#c5





--- Comment #5 from Jordan Callicoat <MonkeeSage at gmail.com>  2008-03-27 16:01:56 MST ---
Created an attachment (id=204445)
 --> (https://bugzilla.novell.com/attachment.cgi?id=204445)
Another test case, without using WinForms

The OnWorkDone handler is executed *before* the OnDoWork handler terminates
(viz., at the point CancelAsync is called); the OnDoWork handler continues to
run, since the CancellationPending property is always false except in the
OnWorkDone handler, and the OnWorkDone handler is never called again. The patch
I posted previously fixes this behavior.

This testcase also demonstrates bug 328830 (
https://bugzilla.novell.com/show_bug.cgi?id=328830 , q.v., for patch).


-- 
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