Re: run time issue- on gtk_widget_show()- Xlib:unexpected async reply



"shibu alampatta" wrote:

during runtime I'm getting the message

Xlib:unexpected async reply (sequence 0xbe8)

while trying to show a window.

The senario is , In my multi window application,from a thread i'm calling a
function, which contains the lines as below

............
GtkWidget *mywindow;
.............
mywindow=create_mywindow();// this line is wrking fine
gtk_widget_show(mywindow);
..........

while executing gtk_widget_show(mywindow) it is showing the above mentione
message and not showing the window.

Please see the following thread:
http://mail.gnome.org/archives/gtk-app-devel-list/2006-March/msg00310.html

Optionally also:
http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/writing_reentrant_thread_safe_code.htm#HDRA5CMFJ3B0MANU
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Threads.html
http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html
http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html#GMutex
http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html#GStaticMutex

In short: writing multi-threaded programs requires a lot more care and
knowledge than just how to start another thread. Without knowing about
these concepts: don't do it!



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