[Gtk-sharp-list] A big Problem wiht gtk-sharp

Bojan Rajkovic brajkovic at coderinserepeat.com
Tue Nov 1 14:44:30 EDT 2011

On Nov 1, 2011, at 1:15 PM, leonel.florin at cfg.jovenclub.cu wrote:

> Hi friends:
> Well, I have a problem that is driving me crazy, in a gtk-sharp 2.12 window I have a
> label where I represent a digital clock "00:00:00" and I create a thread with
> infinity loop that wait a second to change the label in the windows, this thread
> execute a method inside the windows where the windows it self change the label's
> text.
> The problems is, that pass a random time the windows get block, I mean, program
> remains working but the visual part of the windows get blocked.
> what could be happening, please I need this help.....
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Please read http://www.mono-project.com/Responsive_Applications. The problem is not in GTK#, it's in your code. Specifically read the bigs about Gtk.Application.Invoke and Gtk.ThreadNotify, and programming with threads.


More information about the Gtk-sharp-list mailing list