Xlib: unexpected async reply

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

 




Hello, I have a thread that draws to a GtkDrawingArea, and randomly I will get this error:


	Xlib: unexpected async reply 0xSomeHeXNumber

and the program "freezes" (i.e., I can't tell if the background computation is still going or not, but the GUI becomes unresponsive)...

I have tried to fix this using both gdk_flush() and XFlush(GdkDisplay *) as per http://www.gtk.org/faq/#AEN492 , but I still get this error some times... Note that I have also enclosed this thread's spawn call with gdk_threads_{enter,leave}() , respectively...

Any ideas why the flushes won't completely eradicate this problem and how I might go about fixing it...??? Thanks...


- Ian

-------------------------------------------------------------------------------
"Mostly, when you see programmers, they aren't doing anything...
 One of the attractive things about programmers is that you cannot tell
 whether or not they are working simply by looking at them...  Very often
 they're sitting there seemingly drinking coffee and gossiping, or just
 staring into space...  What the programmer is trying to do is get a handle
 on all the individual and unrelated ideas that are scampering around in
 his head..."  -- Charles M. Strauss
-------------------------------------------------------------------------------
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux