[Gtk-sharp-list] Problem with threaded GTK# Application on Windows

Jiří Zárevúcký zarevucky.jiri at gmail.com
Mon Feb 23 08:49:49 EST 2009

2009/2/23 Rapha222 <raphaeljavaux at gmail.com>:
> 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.

You can dispatch all changes to the main loop using Application.Invoke
(). This is IMO the easiest way to work with Gtk in a multi-threaded

More information about the Gtk-sharp-list mailing list