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

Home » Public Forums » archive » Re: Attempt to subscript FILNAM with I is out of range....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Attempt to subscript FILNAM with I is out of range.... [message #31755 is a reply to message #31751] Thu, 15 August 2002 09:20 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kolbjorn Bekkelund (kobe@rocketrange.no) writes:

> When running one of my IDL routines from inside an IDL session I get:
>
> IDL> .run calc_quality_dual_online_auto
> % Compiled module: $MAIN$.
> % Compiled module: LOADCT.
> % Compiled module: FILEPATH.
> % LOADCT: Loading table Purple-Red + Stripes
> % Loaded DLM: PNG
>
> If I try to run the same thing from the Linux command line like:
>
> /usr/local/idl /data/ozon/eval/calc_quality_dual_online_auto.pro I get:
>
> [ozon@ozonpc eval]$ /usr/local/bin/autorun_idl_ozon_combined
> IDL Version 5.4 (linux x86). (c) 2000, Research Systems, Inc.
> Installation number: 83192.
> Licensed for use by: Aloma-Linux
>
> % Compiled module: LOADCT.
> % Compiled module: FILEPATH.
> % LOADCT: Loading table Purple-Red + Stripes
> % Attempt to subscript FILNAM with I is out of range.
> % Execution halted at: $MAIN$
> % Attempt to subscript FILNAM with I is out of range.
> % Execution halted at: $MAIN$
> % READF: Variable is undefined: RESF.
> % Execution halted at: $MAIN$
> % READF: Variable is undefined: RESF.
> % Execution halted at: $MAIN$
> % Attempt to subscript ITIM with I is out of range.
> % Execution halted at: $MAIN$
> % Attempt to subscript ITIM with I is out of range.
> % Execution halted at: $MAIN$
>
> + more errors until the end of the routine.
>
> What is it that can make a diff. here since it works wonderful from
> inside IDL. This is both in idlde and the idl command line.

I can't quite tell from the "autorun_idl" bit whether
you are running a run-time version of IDL or not. But
these errors are look very much like the kinds of errors
you would get if you were throwing up a blocking widget
to get input from the user. In run-time versions of IDL
you can't block the IDL command line (there is no command
line *to* block!), so return variables that are suppose
to have valid data in them, don't.

That's my first guess. You could test it by printing
out the index I. My guess is that it is -1.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hough transform help
Next Topic: keayboard events in draw widgets

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

Current Time: Fri Oct 10 14:35:32 PDT 2025

Total time taken to generate the page: 0.16573 seconds