[Gtk-sharp-list] [NewBie] Gtk.Main Thread Notification

Todd Berman tberman@sevenl.net
Mon, 15 Mar 2004 11:16:53 -0500


When the next version of gtk# comes out, ThreadNotify will work on
windows. It has been converted to use GLib.Idle internally.

--Todd

On Mon, 2004-15-03 at 12:34 +0100, Alessandro Lendaro wrote:

> Hi, I have a Thread running the Gtk.Main (Application.Run()) and when a 
> button is pressed another thread is
> started which does some work on a database with events firing when some 
> output messages have to be shown in a
> TextView widget.
> The thing works magnifically, but at the end of the DB Worker thread I 
> want a MessageDialog to be shown
> if there have been errors in the operation.
> The things is, events run in the DB Worker thread, and when the 
> MessageDialog.Run() method is executed,
> I get an error because the Gtk.Main() loop is running in another thread.
> 
> So I think I must notify to the other thread that it must execute the 
> Message.Run() ...
> 
> after a little search I found that the ThreadNotify class can be used in 
> this case, but a System.DLLNotFound Exception is thrown when I 
> istantiate the ThreadNotify Class ... referred to libc.so.6...
> 
> Gtk# 0.17 on Windows 2000 / .NET Framework 1.0
> 
> Thanx to anyone who will help...
> 
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list