[Mono-devel-list] Re: Threading model

Pascal Fresnay pascalfresnay at free.fr
Fri Aug 5 10:22:26 EDT 2005


Paul F. Johnson a écrit :

>Hi,
>
>  
>
>>>  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.
>>    
>>
>
>How do I use Control.Invoke within my code and I'm not sure this
>explains the r00t access the code gave me.
>
>TTFN
>
>Paul
>  
>
Hi,
look at this sample :
http://samples.gotdotnet.com/QuickStart/howto/default.aspx?url=/quickstart/howto/doc/WinForms/WinFormsThreadMarshalling.aspx

Pascal



More information about the Mono-devel-list mailing list