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 
Switch to threaded view of this topic Create a new topic Submit Reply
X window error [message #73781] Sat, 27 November 2010 21:08 Go to next message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
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!
Re: X window error [message #73849 is a reply to message #73781] Tue, 30 November 2010 19:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Hawaiianite writes:

> 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.

You are using an old version. Upgrade to the latest. :-)

http://www.dfanning.com/programs/tvread.pro

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
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!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: X window error
Next Topic: Dumb PostScript Defaults

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

Current Time: Wed Oct 08 18:04:41 PDT 2025

Total time taken to generate the page: 0.00484 seconds