LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-29-2005, 04:59 AM   #1
stephenwalter
Member
 
Registered: Jul 2005
Location: india,coimbatore
Distribution: Fedora core 4
Posts: 85

Rep: Reputation: 15
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
 
Old 01-20-2006, 01:21 AM   #2
stephenwalter
Member
 
Registered: Jul 2005
Location: india,coimbatore
Distribution: Fedora core 4
Posts: 85

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need something else when displaying a new dialog? Gnarg Programming 2 12-01-2005 06:34 AM
Wine trouble - Menu bars blank (same happens in install dialog boxes) Hagal Linux - Software 2 09-17-2005 05:10 PM
Firefox dying on dialog boxes Artanicus Linux - Software 1 02-22-2005 01:10 AM
Java: wait until first dialog is closed before displaying the other one? gundelgauk Programming 2 08-13-2004 06:57 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM


All times are GMT -5. The time now is 06:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration