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

Home » Public Forums » archive » X window error
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: X window error [message #73850 is a reply to message #73781] Tue, 30 November 2010 17:56 Go to previous message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
On Nov 30, 7:59 pm, Hawaiianite <jtmcah...@gmail.com> wrote:
> On Nov 28, 8:18 pm, Andrew Cool <andrew.c...@dsto.defence.gov.au>
> wrote:
>
>
>
>
>
>
>
>
>
>> On Nov 28, 3:08 pm, Hawaiianite <jtmcah...@gmail.com> wrote:
>
>>> Hello,
>
>>> I keep getting an X windows badmatch error when trying to write a png
>>> file.  It's worked perfectly fine on other computers but apparently
>>> something is different about the environment on my current computer.
>
>>> if keyword_set(png_file) then begin
>>>         wset, 0 & rgbSnapshot = tvrd(TRUE=1)
>>>         write_png, png_file, rgbSnapshot
>>> endif
>
>>> Does anyone have any thoughts?
>
>>> Thanks!
>
>> Try TVREAD and TVWRITE from Coyote.
>
>> Andrew
>
> Andrew,
>
> I appear to get the same error when using TVREAD.  And I get it over
> an over again like it is doing a repetitive process.
>
> % X windows protocol error: BadMatch (invalid parameter attributes).
> % X windows protocol error: BadMatch (invalid parameter attributes).
> % X windows protocol error: BadMatch (invalid parameter attributes).
> % X windows protocol error: BadMatch (invalid parameter attributes).

Hi everyone,

Setting RETAIN=2 in WINDOW did the trick. David, I noticed there are
two WRITE_PNG commands in your TVREAD code. One has the REVERSE, one
doesn't. Is one supposed to work in -32 vs -64 bit? Or do you just
comment them out as needed? I tend to spend a lot of time in -32 bit
to use the ISIS DLMs.

Thanks Everyone!
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: X window error
Next Topic: Dumb PostScript Defaults

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

Current Time: Sat Nov 29 11:56:06 PST 2025

Total time taken to generate the page: 0.95969 seconds