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

Home » Public Forums » archive » bug in cgm device???
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
bug in cgm device??? [message #32468] Mon, 07 October 2002 05:26
Pepijn Kenter is currently offline  Pepijn Kenter
Messages: 31
Registered: April 2002
Member
Hi all.

When I run the following program (in IDL 5.5) I get the following output.

---------- program ---------------
pro file_test

set_plot, 'cgm'
plot, indgen(40)

openr, lun, 'RA_ABS_IRR_MAIN', /get_lun
print, 'lun: ' + string(lun)
free_lun, lun

device, /close_file

help, /files
end

---------- output ---------------

IDL> file_test
% Compiled module: FILE_TEST.
% PLOT: Warning - No colormap has been loaded into CGM driver.
lun: 101
Unit Attributes Name
100 Closed, Reserved

IDL> .reset_session
IDL> file_test
% Compiled module: FILE_TEST.
% OPENR: File unit is already open. Unit: 100, File: idl.cgm.
% Execution halted at: FILE_TEST 9
/home/pepijn/gokey/results/fm1/radiometric/tb1/f
ile_test.pro
% $MAIN$

-----------------------------

So LUN 100 is still reserved. This is a side effect that gets me in to
trouble when I type: .reset_session and run the program again, as can be
seen in the last few lines.

When I use the "ps" device instead of the "cgm" I don't get this error, so
it seems to me that there is a bug in IDL.
Or am I doing something wrong?

Thanks for your help, Pepijn Kenter.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Got my code into IDL 5.6!
Next Topic: Re: bug in cgm device???

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

Current Time: Wed Oct 08 11:51:18 PDT 2025

Total time taken to generate the page: 0.00746 seconds