[Gtk-sharp-list] Problem with Threading ...
Francis Brosnan Blazquez
francis at aspl.es
Sat Nov 19 07:25:13 EST 2005
El sáb, 19-11-2005 a las 12:07 +0100, xiii29 escribió:
> I've test some case and it seems that its come from the progress
> bar ...
> In the doc, one says that progress bar is in Gtk# 2.6 ... as I'm using
> Gtk#2.4 ...maybe this is the explanation ...
Did you try to use ThreadNotify?
In short, you can't modify or issue any Gtk command from outside the
mainloop, which is launched by the thread that called Application.Init.
To operate your Gtk# interface from a different thread than the main one
you'll have to use the ThreadNotify class to queue your interface
updates so they are executed inside the Gtk# mainloop.
A long explanation could be found here (with some ThreadNotify
Although it talks about mixing Af-Arch# with Gtk# applications the
underlaying concept its the same.
> xiii29 wrote:
> > Hi,
> > i'm would to use thread in my application in order to separate
> > different traitement ...
> > Everythings goes right when I try in ConsoleApps but when I try in
> > Gtk# i got a message :
> > "XLib : unexpected async reply (sequence 0x1ce)"
> > Someone got an idea ?
> > Thanks !
> > ____________________________________________________________________
> > _______________________________________________
> > Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.
More information about the Gtk-sharp-list