Re: Xlib: unexpected async reply

>Dear all,
>I have been trying to display video images from a DV camera. My
>application is multi-threaded and I am using pthread class. After

then you're not using threads correctly. the rule is:


         a) use gdk_threads_{enter,leave} or some wrapper thereof
	    around any and all calls to Gtk/GTK/Gdk/GDK/X functions, 


         b) ensure that only one thread makes calls to
            Gtk/GTK/Gdk/GDK/X functions. Glib::Dispatcher is
	    a helper object that can assist here.


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