bug in cgm device??? [message #32468] |
Mon, 07 October 2002 05:26 |
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.
|
|
|