blog vipa
mój dzień to 3 filiżanki kawy

blog vipa

Gtk is NOT thread safe

23 maja, 2009 . by vip

Thanks. I’ve lost few days for searching bug. I didn’t know, that the signal sent from the Posix Thread and received by Gtk application isn’t executed in Gtk thread.

If you wan’t to write software, and you’re sure, you want to write it in C#/Gtk# (if not, choose Qt) and you will use threads, read , which, at the end, brings simple solution:

if(Changed != null)
Gtk.Application.Invoke(delegate { Changed(„u”); });


Leave a Reply