[Gtk-sharp-list] Why(Gtk# + threading != responsive GUI)
latexer at gentoo.org
Fri Jan 11 11:14:25 EST 2008
On Fri, Jan 11, 2008 at 10:07:10AM -0500, Vladimir Giszpenc wrote:
> Hi all,
> My (Gtk#) GUI thread is non-responsive and I am hoping to find a
> profiler or something else that will help me figure out why that is.
> I am creating a worker thread (a.k.a. long running process) as
> described below. Note that I set the priority to Lowest for my worker
> but it seems to take over the processor anyway.
> Are there any obvious tips I can try to follow?
Have you read http://mono-project.com/Responsive_Applications yet? gtk+
is thread aware, but not thread safe. In order to behave properly, you
can only mess with GUI bits from within the gtk+ mainloop context. The
above URL has a lot of pointers for approaches for doing this properly.
More information about the Gtk-sharp-list