Linux (Xlib) Application hangs on GetGeometry()

Tags
linux, programming, xlib

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 06-12-2018
Linux (Xlib) Application hangs on GetGeometry()

Hello,

I was just wondering why XGetGeometry() would cause a hang in an application.

In the xlib book it says any of there "Get" functions don't necessarily return immediately.

Is there a way to make a it return immediately or other functions that will give me the same results.


I tried using XFlush() and Xsync() before & after the XGetGeometry() function call. Also I tried using xlib's XGetWindowAttributes() instead of XGetGeometry().

Moderator's Comments:
Mod Comment edit by bakunin: moved to the fitting forum

Last edited by bakunin; 06-12-2018 at 06:28 PM..
# 2  
Old 07-12-2018
Because they're stateful: The server doesn't just acknowledge receiving it, it must perform the command and retrieve the answer before the command returns.
Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Application Memory usage ron5174 Shell Programming and Scripting 7 05-09-2018 02:51 AM
Xlib: XKeysymToKeycode hangs N7DR UNIX for Advanced & Expert Users 2 12-26-2012 02:47 PM
Application clustering in Linux Ubuntu Jewel100 Ubuntu 2 11-29-2012 11:35 PM
Timer application in linux Harry443 UNIX and Linux Applications 0 12-29-2011 07:10 AM
Expect script hangs Linux mass85 Shell Programming and Scripting 3 08-11-2011 01:02 AM
Linux system hangs giving ntp errors SiddhV Red Hat 0 01-21-2011 03:06 AM
Shell script runs fine in Solaris, in Linux hangs at wait command aksaravanan Shell Programming and Scripting 13 11-01-2010 11:40 AM
Application Cleanup during Linux Shutdown whatisron Programming 6 02-12-2010 11:11 AM
Wanted- Linux Application Engineers Barb S. Advertise with Us 0 10-28-2009 02:50 PM
Migrating C Application from AIX to Linux karthikc AIX 3 08-17-2009 03:04 PM
Linux Based Application OID sureshcisco UNIX for Advanced & Expert Users 1 03-10-2009 07:48 AM
Linux machines hangs for a short while. Esaia UNIX for Advanced & Expert Users 2 09-12-2008 11:06 AM
SCO 5.0.6 application compatibility w/ Linux? stay0ut SCO 8 05-02-2008 01:42 PM
xlib blues (XFree86 - Linux) Alux Programming 1 12-01-2005 07:44 AM
Porting Win32 application into Linux Sergeyy Programming 0 06-23-2003 08:15 AM
All times are GMT -4. The time now is 09:39 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?