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

Home » Public Forums » archive » Re: "Variable undefined" error in LOADCT?
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: "Variable undefined" error in LOADCT? [message #61443 is a reply to message #61439] Wed, 16 July 2008 19:58 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ed Hyer writes:

> This one is interesting. Basically, I'm running a batch graphics
> routine making a bunch of plots, and periodically LOADCT gets called,
> in this form:
>
> LOADCT,39,/silent
>
> Now, lately this routine will run for a while (several plots) and then
> break, with the error:
>
> % Variable is undefined: FILENAME.
> % Error occurred at: LOADCT 180
>
> Here is the relevant code from loadct.pro:
>
> if (n_elements(file) GT 0) then filename = file $
> else filename = filepath('colors1.tbl', subdir=['resource', 'colors'])
> openr,lun, filename, /block
>
> Has anyone ever seen this error?

Wow. Are you sure you have the right LOADCT call?
It is not being called in some other program, is it?
Sometimes a variable like "file" or "filename" will
change unexpectedly in a program. Especially in a
long batch program.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: widget for incrementing/decrementing an integer
Next Topic: "Variable undefined" error in LOADCT?

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

Current Time: Mon Oct 27 18:17:33 PDT 2025

Total time taken to generate the page: 4.80045 seconds