Re: Xlib error on running GTK app



Glib functions are thread safe, but Gtk functions, AFAIK, are not thread safe ... yet.
You need something like this:

gdk_threads_enter();
gtk_main();
gdk_threads_leave();

On 3/26/07, Renuka K <renuka kusurkar gmail com> wrote:
Hi,
I am using a multi-threaded application in which my GUI thread is spawned from the main thread.
the GUI comes up fine but any action by user hangs the application and gives me an error::

Xlib: unexpected async reply (sequence 0x626)!


Can anybody please help me out with this?

Thanks and Regards
Renuka Kusurkar

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]