×
UNIX.COM Login
Username:
Password:  
Show Password






👤


Programming

Post questions about C, C++, Java, SQL, and other programming languages here.

Linux (Xlib) Application hangs on GetGeometry()

Tags
linux, xlib

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #1  
Old 4 Weeks Ago
TMurray77 TMurray77 is offline
Registered User
 
Join Date: Jun 2018
Last Activity: 12 July 2018, 12:25 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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:
Linux (Xlib) Application hangs on GetGeometry() edit by bakunin: moved to the fitting forum

Last edited by bakunin; 4 Weeks Ago at 05:28 PM..
Sponsored Links
    #2  
Old 3 Days Ago
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 13 July 2018, 1:06 PM EDT
Location: Saskatchewan
Posts: 22,722
Thanks: 1,192
Thanked 4,347 Times in 4,003 Posts
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.
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Xlib: XKeysymToKeycode hangs N7DR UNIX for Advanced & Expert Users 2 12-26-2012 01:47 PM
Expect script hangs Linux mass85 Shell Programming and Scripting 3 08-11-2011 12:02 AM
Linux system hangs giving ntp errors SiddhV Red Hat 0 01-21-2011 02:06 AM
Linux machines hangs for a short while. Esaia UNIX for Advanced & Expert Users 2 09-12-2008 10:06 AM
xlib blues (XFree86 - Linux) Alux Programming 1 12-01-2005 06:44 AM



All times are GMT -4. The time now is 02:23 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.