[Gtk-sharp-list] Gnome app + Shell Command + Threads
Sergio Rubio
sergio.rubio@hispalinux.es
Mon, 31 Jan 2005 21:03:44 +0100
Antonio Gutiérrez Mayoral wrote:
> Hi All:
>
> I have the next problem. I am writing a gnome app... and in a moment I
> launch a shell command. I would like to write the output of this command
> over a textview widget, at the same time the command is executed. I am
> using System.Threads to do this,
>
> Thread t = new Thread ( new ThreadStart( this.process_ ) ) ;
> t.Start();
>
You will have the same problem in Windows.Forms AFAIK. You should not
touch the gui code from another thread.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms06112002.asp
http://taubz.for.net/code/monodocs/gtk-sharp/doc/en/html/Gdk/Threads.html
Regards,
Rubio.