On Mon, 2007-04-16 at 18:09 +0530, prabahar k wrote: > hi > i am trying to use a threaded GTK program. While running the > program it gives segmentation fault and it seem to be an > thread init problem. is there any thing i am missing? Please > give u r comments.
I dont understand why it would segfault and not just block indefinitly, but I believe you should only be protecting gtk_main() with the threads mutex, not gtk_init() as well. (the other functions that follow gtk_init() dont really need protection since you havent spawned your child thread until the last minute either - which btw - should be done with the glib varient "g_thread_create()" - since IMO using a mix of the low level threading api and the glib threading api seems to be an invitation to disaster). Cheers, -Tristan _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list