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

Home » Public Forums » archive » Re: System Variables & .sav files
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: System Variables & .sav files [message #40201] Tue, 27 July 2004 20:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
HyperJiver writes:

> Thanks for the input. Let me write what I understand of the program
> I am trying to work with.
>
> I have a seperate program, setup.pro that does not require any input
> from the user & there are no widgets. The program is usually run using
> a macro that runs a batch file
>
> @bathfilename.pro --
>
> ON_ERROR,1
>
> ;run setup - Uses DEFSYS to define system variables
> [DEFSYSV,"!MY_dir",basedir + libdir (basedir & libdir are defined)]
>
> SETUP
>
> ;run xmanager
>
> XMANAGER
>
> ;run main - uses the system variables that have be defined in
> setup.pro
>
> MAIN
>
>
> - When I try to run the macro- it works fine
> - When I run all these in the command prompt, it works fine
> - To do a standalone application, I executed all these commands in the
> command prompt as follows
>
> on_error,1
> .run setup
> setup
> .run xmanager
> .run main
> resolve_all
> save,/routines, filename = "filename.sav"
>
> When I run the .sav file, I get an error - '!MY_dir is not a legal
> system variable'

Oh, dear. :-(

I have to admit there are days when after 16+ years
of working with IDL I think I have seen it all. But
this setup completely and utterly baffles me. I've never
seen the like. :-)

As far as I can see the issue is not why this DOESN'T
run as a stand-alone application, but why it DOES
run in any other configuration!

I really don't know what to tell you. Sorry.
I guess I'd have to see what that MAIN routine
really does.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Updating a texure map in object graphics
Next Topic: Announcing GDL 0.8.3

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

Current Time: Fri Oct 10 06:16:15 PDT 2025

Total time taken to generate the page: 0.88085 seconds