[Gtk-sharp-list] ThreadNotify Problem Under Windows

Todd Berman tberman at off.net
Tue Oct 18 11:45:35 EDT 2005


On Tue, 2005-10-18 at 16:41 +0100, Archie Maskill wrote:
> Hi everyone -
> 
> I'm sure this must be a known issue, but I've had no luck finding a
> solution.  I'm using Mono-1.1.9.2 on Windows 2000.  I've found the
> ThreadNotify.WakeupMain() method works, but not in a timely fashion.
> If I set the ReadyEvent delegate to be a method that alters the
> appearance of a widget, the widget's appearance will not change until
> the mouse has been moved within the application window. 
> 
> I've included some sample code below.  It's very simple: click the
> button and a worker thread does 4 seconds of "work", changing the
> colour of the label (using ThreadNotify.WakeupMain).  Under Linux this
> works with no problems.  Under Windows 2000, the text does not change
> colour until the mouse is moved within the window.  To see the effect
> simply click the button, move the mouse outside the application's
> window, wait for the worker thread to finish (this is indicated in the
> console), then move the mouse back into the application window. 
> 
> Has this been fixed in CVS?  Or am I using it incorrectly?  Or is
> there something better I should be using?


We seem to notice the same issue here running on win32. When you figure
out how to workaround it, Myself, and most likely many others on this
list would be glad to hear of the solution.

--Todd



More information about the Gtk-sharp-list mailing list