[MonoDevelop] How to Make Dialog which Disappears after 3 Seconds?

Jacek Rużyczka stacheldraht at interia.pl
Sat Apr 3 10:42:12 EDT 2010


Am Freitag 02 April 2010 19:37:25 schrieb Buttink:
> I dont think GTK# is threadsafe. So depending on how you use the timer, it
> will probably crash GTK#. Im pretty sure this is the exact same thing that
> happends with winforms and WPF apps if you dont use Control.Invoke. Try
> looking at this 
>  http://www.albahari.com/threading/part3.aspx#_ControlInvoke
>  http://www.albahari.com/threading/part3.aspx#_ControlInvoke . Iv never
>  actually tried this but its worth a shoot.
> 
OK, I replaced the Timer with a BackgroundWorker...and no more hang-ups!! ^^

What is really important in my solution is cancelling the thread by hand, 
which makes it necessary to set WorkerSupportsCancellation to TRUE.

Many thanks for your help.

Regards
Jacek

--------------------------------------------------
Ubezpieczenia OC, AC w atrakcyjnych cenach 	 
http://link.interia.pl/f2655



More information about the Monodevelop-list mailing list