Xlib: unexpected async reply (sequence ......)



Dear all,

I have been trying to solve this problem for a long time with no success. I have a video application which shows the video stream, captures an image and make some processing on the captured image. Therefore, I have divided the screen into 4 and show video, images and so on in each part of the screen. I search the internet and this problem shows up if your application is multi-threaded. Since my application has to be multi-threaded (because of the video stream), I am frequently getting this error and the application crashes. Now, as far as I've seen, there are two things that could be done. One, is using the gdk_threads_enter / leave() pair. Do I need to use this pair whenever I need to update the GUI? Also I saw in one web page that I also need to use XInitThreads() function and this might solve the problem which did not. Can someone please give a solution to get rid of this problem? I also looked to the GTK+ FAQ. I've seen that a lot of people are struggling with this problem.
Thank you for your time.





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