[Gtk-sharp-list] Problem with threaded GTK# Application on Windows
Rapha222
raphaeljavaux at gmail.com
Mon Feb 23 08:44:22 EST 2009
Chris Howie wrote:
>
> On Tue, Feb 10, 2009 at 4:12 PM, Rapha222 <raphaeljavaux at gmail.com> wrote:
>> I'm making a GTK# application for Linux and .NET, and I need to use the
>> threads fonctions of GTK.
>
> Is there a reason you have to? Why does System.Threading.Thread not work?
>
> --
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
GTK is thread safe, so you can't to modify Gtk Widgets from another thread
that the thread which is running the MainLoop (Application.Run()), unless if
you use Thread.Enter() and Thread.Leave() to stop the mainloop during the
modifications.
--
View this message in context: http://www.nabble.com/Problem-with-threaded-GTK--Application-on-Windows-tp21942601p22161725.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list