[Mono-bugs] [Bug 327608] BackgroundWorker: is UI-thread unsafe!

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 25 12:19:27 EDT 2007


Jonathan Pobst <jpobst at novell.com> changed:

           What    |Removed                                         |Added
           Severity|Normal                                          |Minor

--- Comment #4 from Jonathan Pobst <jpobst at novell.com>  2007-09-25 10:19:26 MST ---
I think this is fixed in r86342 for the common case: using Application.Run. 
Forms or Controls that are created and used without using Application.Run will
still not get a WindowsFormsSynchronizationContext.

Thanks for the tests and MSDN pointer.  I had looked at this before and had no
clue where to begin.  The MSDN article was invaluable.

Also, this required changes in corlib and System.dll, so you will have to
recompile all of mono to try it.

2007-09-25  Jonathan Pobst  <monkey at jpobst.com>

        * Application.cs: Install a WindowsFormsSynchronizationContext in the
        run loop, and uninstall it when done.
        * WindowsFormsSynchronizationContext.cs: Implement.
        [Fixes the common case in bug #327608]

Please test this for me as I could easily have missed stuff.  :)

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