[Gtk-sharp-list] thread safety issues with Gtk TreeView

Todd Berman tberman@gentoo.org
Mon, 15 Sep 2003 12:38:47 -0400


On that note, here is a initial attempt at getting Gtk.ThreadNotify to
work on win32.

http://insideyou.org/~tberman/thread.tgz

NOTE: this does NOT work on win32 yet, its just a good starting point
that someone here might be able to pick up and run with, my win32 coding
experience is pretty limited. As well, this is full of debugging
messages to attempt to figure out where the issue might be, just a heads
up.

As well, no promises that it doesn't break a working *nix
Gtk.ThreadNotify.

Any response/idea/help/fixing is appreciated :)

--Todd

> -----Original Message-----
> From: gtk-sharp-list-admin@lists.ximian.com [mailto:gtk-sharp-list-
> admin@lists.ximian.com] On Behalf Of Mike Kestner
> Sent: September 15, 2003 12:44 AM
> To: Davy Brion
> Cc: gtk-sharp-list@lists.ximian.com
> Subject: Re: [Gtk-sharp-list] thread safety issues with Gtk TreeView
> 
> On Sun, 2003-09-14 at 23:41, Mike Kestner wrote:
> > On Sun, 2003-09-14 at 10:35, Davy Brion wrote:
> >
> > > i have a widget which contains a Gtk TreeView.  New rows are added
to
> the
> > > TreeView from a different thread than the GUI thread.  At random
times
> in my
> > > application the GUI will freeze up and this exception occurs:
> >
> > You must perform all updates to the GUI from the GUI thread.
> 
> Oops, premature send.  You may want to look at the Gtk.ThreadNotify
> class that Miguel added.  I believe he uses it in mPhoto to queue
> updates to the GUI from other threads.
> 
> --
> Mike Kestner <mkestner@speakeasy.net>
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list