On Thursday 08 February 2007 12:53, tboloo wrote: > I'm trying to utilize threads in my app. Since there aren't many materials > covering this topic this may be something trivial, but I really searched a > lot and didn't find anything that would help me. > This is what I've achieved so far :
[snip] Your problem is that you are making calls to GTK+ from two different threads and you are not using the GDK lock (your call to hellothread::thread_dilate() is executing in a second thread and making calls to the button object). If you happen to be using Windows you also have the problem that the GDK lock will not help even if you were using it. The better choice is to only call GTK+ functions in the main GUI thread and use Glib::Dispatcher to communicate with that thread. Chris _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
