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

Alessandro Lendaro alendaro1@virgilio.it
Mon, 15 Mar 2004 12:34:32 +0100


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...