| Re: X window error [message #73850 is a reply to message #73781] |
Tue, 30 November 2010 17:56  |
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!
|
|
|
|