Talk About Network

Google





Graphics > Graphics APIs > Re: Looking for...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 83 of 99
Post > Topic >>

Re: Looking for xlib programing help....

by John Tsiombikas <nuclear@[EMAIL PROTECTED] > Jan 23, 2008 at 03:19 AM

On 2008-01-23, Dwayne Dilbeck <ddilbeck@[EMAIL PROTECTED]
> wrote:
>
> I have an application that was written in "C" and uses xlib.   The 
> application works as expected on Sparc Solaris 7,8,9 and 10.
>
> The application now needs to be ****ted to red hat 4.0.   The obvious
changes 
> to library linking have been made .  The original application compiles
with 
> 0 Errors and 0 Warnings.  But the application does not work. It launches
and 
> hangs in the event loop.
>
> When using a debuger the hang occurs with XNextEvent(...). XNextEvent
will 
> wait if there is nothing in the queue.  I rewrote the event algorythm to
use 
> XCheckWindowEvent(...)  The resulted in something wierd the code worked
as 
> expected as long as there were not any events.  If it recieved an event
it 
> was looking for the program hangs inside of XCheckWindowEvent.
>

XNextEvent is supposed to block until there is at least one X event. I
really doubt that it works otherwise on Solaris :) If you want to poll
events, you may use the XPending() function in a loop, so that you call
XNextEvent only if there are pending events, thus XNextEvent wouldn't
block.

I don't think I can help any more without any more information on the
expected behaviour, how it's supposed to work, and what it's actually
doing. Of course a *minimal* code sample that duplicates your problem
would be helpful as well.

P.S. Such questions are mostly topical on comp.windows.x. I did set
followup-to accordingly.

-- 
John Tsiombikas (Nuclear / Mindlapse)
http://nuclear.sdf-eu.org/
 




 2 Posts in Topic:
Looking for xlib programing help....
"Dwayne Dilbeck"  2008-01-22 16:55:39 
Re: Looking for xlib programing help....
John Tsiombikas <nucle  2008-01-23 03:19:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 14:32:05 PST 2009.