Re: Xlib: unexpected async reply



On Sun, 2006-09-03 at 19:26 +0500, Evgeny Repekto wrote:
> Hi,
> 
> Please help me. I'm doing with threads. The idea is to remove many
> widgets (>1000) from the container and put there new.
> I created custom widget. I'm adding them to the box using add()
> method. Special rotuine is being started in the tread after 
> user has chosen a menu item command. This routine removes all widgets
> from the container using delete operator. 
> Something happend during or after removing. I get the message "Xlib:
> unexpected async reply" and my window get stock.
> 
> Please, give me a clue what should I do.

read the GTK FAQ on threads. this is the standard error encountered by
everyone who starts using threads with X-based GUI toolkits. pithy
summary: either make sure that only 1 thread ever make X/gdk/gtk calls
(using Glib::Dispatcher) or ensure that you use gtk thread locking in
every thread.






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