[Mono-devel-list] Re: Threading model

Robert Jordan robertj at gmx.net
Fri Aug 5 08:07:57 EDT 2005


Hi Paul,

>   public void synchTest()
>   {
>     del();
>     if (count1 != count2)
>       lbl.Text = "Unsynched";
>   }
> }

Your code access the UI from another thread.
This is unsuported with SWF (on MSFT's runtime, too).
You must use Control.Invoke if you want to update the UI from
another thread, otherwise strange things will happen.

Rob




More information about the Mono-devel-list mailing list