comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: WINDOW procedure and SET_X_BID keyword
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: WINDOW procedure and SET_X_BID keyword [message #42214 is a reply to message #42209] Tue, 18 January 2005 08:48 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rob writes:

> I've been allocating my own Pixmaps (in a C program) and using IDL's
> WINDOW procedure to draw into that Pixmap
> (WINDOW, /FREE, /PIXMAP, /SET_X_BID=####). That works pretty well, but
> in some circumstances I've seen BadPixmap X Errors come out of the IDL
> process.
>
> Now clearly this situation is begging for me to have some timing issues
>
> - I am using XFlush() and IDL's "EMPTY" procedure in an attempt to keep
>
> the two X Displays from getting out of sync.
>
> If I remove my call to WDELETE, I believe I never have this issue.
> However, this appears to leak memory on the X Server (my processes run
> for a long time).
>
> Anyway there is no documentation about this keyword. Does anybody have
> any insight into this issue? I am having a devil of a time reproducing
> this problem also, so I'm thinking it's a timing issue.

I'm pretty sure I have the only piece of documentation extant
on this topic. I see it is dated 20 July 1992! Oddly enough,
I was cleaning out some files just last night, looking for
something else, when I found it again. I nearly threw it out,
but kept it for old-times sake. You never know... :-)

Anyway, there is a warning in this piece of documentation to
not use WDELETE to delete windows created in this way or X
protocol errors will result. Your X application will have
to kill these kinds of windows.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: WINDOW procedure and SET_X_BID keyword
Next Topic: Re: hdf5 write sample code

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:57:07 PDT 2025

Total time taken to generate the page: 0.00216 seconds