[Gtk-sharp-list] Problem with Threading ...
Eric Butler
eric at extremeboredom.net
Sat Nov 19 18:44:01 EST 2005
http://mono-project.com/Responsive_Applications
Regards,
Eric
On 11/19/05, Francis Brosnan Blazquez <francis at aspl.es> wrote:
> 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 ...
> >
>
> Hi,
>
>
> 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
> examples):
>
> http://www.aspl.es/fact/doc/af_arch_gtk_sharp.html
>
> Although it talks about mixing Af-Arch# with Gtk# applications the
> underlaying concept its the same.
>
> Cheers!
>
>
>
> >
> >
> > 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
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> --
> Francis Brosnan Blazquez <francis at aspl.es>
> Advanced Software Production Line, S.L.
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
More information about the Gtk-sharp-list
mailing list