IDL 8.0 bug -- line number of errors not given [message #72905] |
Tue, 12 October 2010 10:35 |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
I'm not sure if this IDL 8.0 bug has been mentioned. (At least I
think it is a bug -- perhaps someone can convince me that it is a
feature.)
If I run the litle program below, I get
IDL> print,!version
{ x86 linux unix linux 8.0 Jun 18 2010 32 64}
IDL> test
% Specified offset to array is out of range: A.
% Execution halted at: $MAIN$
So there is an error somewhere, but I have no idea of the line number,
or even of the routine name. (I've been coming across this error
running software with a dozen nested programs.) IDL 7.1 gave the
expected traceback. --Wayne
IDL> print,!version
{ x86 linux unix linux 7.1.1 Aug 19 2009 32 64}
IDL> test
% Compiled module: TEST.
% Specified offset to array is out of range: A.
% Error occurred at: TEST1 4 /home/landsman/newdb/
test.pro
% TEST 10 /home/landsman/newdb/
test.pro
% $MAIN$
% Execution halted at: $MAIN$
function test1
a = bindgen(32)
c = long(a,30,1)
return,1
end
pro test
On_error,2
print,test1()
return
end
|
|
|