Re: run .sav file with -args [message #73626 is a reply to message #73511] |
Mon, 15 November 2010 19:59   |
ben.bighair
Messages: 221 Registered: April 2007
|
Senior Member |
|
|
On 11/15/10 10:03 PM, Truong Le wrote:
>
> Hi Ben,
>
> I have successfully executed the example above in the window
> environment and
> so I set out to build a more complicated procedures that I need to
> create for
> my work. After I build my .sav file from using idlde and ran the .sav
> file
> using idlrt -vm=filename.sav -args param1 param2 ...
>
> I get the attempt to call undefined procedure/function:'filename'
> message.
> The .sav file is in the directory. Please let me know what I did
> wrong.
Hi,
I suspect that this is *not* an issue with the Virtual Machine. To get
the most useful help from the list, you should post the complete error
message - exactly as IDL prints it.
Without more info we can only guess, and my guess is that somewhere you
have a variable called "filename" that you are indexing with parentheses
instead of square brackets.
filename(i) <-- IDL might think filename is a function
filename[i] <-- an element of a variable 'filename'
But, then again, you might actually have a routine called 'filename'
that didn't get compiled and stuffed into the save file, but,
nonetheless, gets called by the code that did make it into the save file.
Ben
|
|
|