LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   GTK 2.0 problems in displaying dialog boxes (https://www.linuxquestions.org/questions/programming-9/gtk-2-0-problems-in-displaying-dialog-boxes-387536/)

stephenwalter 11-29-2005 04:59 AM

GTK 2.0 problems in displaying dialog boxes
 
Hello all,
Iam working on a client server application using c GUI developed using GTK, on receipt of certain responses from the server i need to display certain status by using dialog boxes. When i use the dialog boxes when displaying status during any internal processing in the client side the dialogs function properly , but when i try to use the same dialogboxes when a response is received from the server , some times i get this error


Xlib: unexpected async reply (sequence 0x43e7)!


And some times it works fine. I dont understand the issue at all. If anyone has worked on similar lines or knows anything abt this please let me know.

Regards,

S.Suresh Stephen

stephenwalter 01-20-2006 01:21 AM

Hello All,
I would like to thank everyone who took a look at this thread. But i have spotted the cause for this issue. This error occurs because GTK2.0 is not thread safe. If any different thread other than the main thread which tries to modify the widgets this is wat happens. This can be avoided using g_idle_add() or there are quite some other options which can help.

Regards,
S.Suresh Stephen


All times are GMT -5. The time now is 02:59 AM.