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

Home » Public Forums » archive » Re: Compile/Restore on Startup
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Compile/Restore on Startup [message #64657] Fri, 09 January 2009 13:34
Brian is currently offline  Brian
Messages: 27
Registered: March 2001
Junior Member
On Jan 9, 3:45 pm, David Fanning <n...@dfanning.com> wrote:
> Brian writes:
>> Perhaps my terminology is incorrect.  Yes, I have a created an
>> ENVI .sav file and added it to the save_add directory.  This is a save
>> of many routines that use both ENVI and IDL functions and procedures.
>> My issue is that it doesn't "RESTORE" the file everytime I open an
>> instance of ENVI, sometimes it merely "COMPILES" the file.  When it
>> "RESTORES" the .sav, my toolbar exists and everything works great!
>> however, more often that not, it "COMPILES" the .sav and my toolbar is
>> not there:(
>
>> When I refer to RESTORE and COMPILE above, I'm referring to the
>> messages I get in the IDL console upon startup of ENVI, NOT the
>> commands.  Hope this helps to decypher my previous message.
>
> This is exceedingly strange. :-)
>
> The only way it could possibly be "compiling" the file
> is if your IDL paths are all higgly-squiggly. Now, this could
> *certainly* happen if you are allowing IDL to set up your
> paths for you. But if you have been reading this newsgroup
> for any length of time, I find it hard to believe that
> this is so.
>
> In any case, since it is IDL 7 we are talking about here,
> I would just make ABSOLUTELY sure that your projects
> are NOT mucking with your IDL paths and that all your
> path directories are being set in the PATHS preferences.
>
>   http://www.dfanning.com/workbench/pathchange.html
>
> Maybe that will straighten things out.
>
> You might find my PrintPath routine helpful in sorting all this
> out. I know I certainly have. :-)
>
>   http://www.dfanning.com/programs/printpath.pro
>
> 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.")

That seemed to do it! It was a path issue. Thank you soooo much for
all of your help, you guys ROCK!
Re: Compile/Restore on Startup [message #64658 is a reply to message #64657] Fri, 09 January 2009 13:16 Go to previous message
Brian is currently offline  Brian
Messages: 27
Registered: March 2001
Junior Member
On Jan 9, 3:45 pm, David Fanning <n...@dfanning.com> wrote:
> Brian writes:
>> Perhaps my terminology is incorrect.  Yes, I have a created an
>> ENVI .sav file and added it to the save_add directory.  This is a save
>> of many routines that use both ENVI and IDL functions and procedures.
>> My issue is that it doesn't "RESTORE" the file everytime I open an
>> instance of ENVI, sometimes it merely "COMPILES" the file.  When it
>> "RESTORES" the .sav, my toolbar exists and everything works great!
>> however, more often that not, it "COMPILES" the .sav and my toolbar is
>> not there:(
>
>> When I refer to RESTORE and COMPILE above, I'm referring to the
>> messages I get in the IDL console upon startup of ENVI, NOT the
>> commands.  Hope this helps to decypher my previous message.
>
> This is exceedingly strange. :-)
>
> The only way it could possibly be "compiling" the file
> is if your IDL paths are all higgly-squiggly. Now, this could
> *certainly* happen if you are allowing IDL to set up your
> paths for you. But if you have been reading this newsgroup
> for any length of time, I find it hard to believe that
> this is so.
>
> In any case, since it is IDL 7 we are talking about here,
> I would just make ABSOLUTELY sure that your projects
> are NOT mucking with your IDL paths and that all your
> path directories are being set in the PATHS preferences.
>
>   http://www.dfanning.com/workbench/pathchange.html
>
> Maybe that will straighten things out.
>
> You might find my PrintPath routine helpful in sorting all this
> out. I know I certainly have. :-)
>
>   http://www.dfanning.com/programs/printpath.pro
>
> 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.")

Thanks for all the help! I'll give these a try and let you know how
it comes out.

B
Re: Compile/Restore on Startup [message #64660 is a reply to message #64658] Fri, 09 January 2009 12:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian writes:

> Perhaps my terminology is incorrect. Yes, I have a created an
> ENVI .sav file and added it to the save_add directory. This is a save
> of many routines that use both ENVI and IDL functions and procedures.
> My issue is that it doesn't "RESTORE" the file everytime I open an
> instance of ENVI, sometimes it merely "COMPILES" the file. When it
> "RESTORES" the .sav, my toolbar exists and everything works great!
> however, more often that not, it "COMPILES" the .sav and my toolbar is
> not there:(
>
> When I refer to RESTORE and COMPILE above, I'm referring to the
> messages I get in the IDL console upon startup of ENVI, NOT the
> commands. Hope this helps to decypher my previous message.

This is exceedingly strange. :-)

The only way it could possibly be "compiling" the file
is if your IDL paths are all higgly-squiggly. Now, this could
*certainly* happen if you are allowing IDL to set up your
paths for you. But if you have been reading this newsgroup
for any length of time, I find it hard to believe that
this is so.

In any case, since it is IDL 7 we are talking about here,
I would just make ABSOLUTELY sure that your projects
are NOT mucking with your IDL paths and that all your
path directories are being set in the PATHS preferences.

http://www.dfanning.com/workbench/pathchange.html

Maybe that will straighten things out.

You might find my PrintPath routine helpful in sorting all this
out. I know I certainly have. :-)

http://www.dfanning.com/programs/printpath.pro

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.")
Re: Compile/Restore on Startup [message #64661 is a reply to message #64660] Fri, 09 January 2009 12:24 Go to previous message
jeffnettles4870 is currently offline  jeffnettles4870
Messages: 111
Registered: October 2006
Senior Member
On Jan 9, 3:15 pm, Brian <cavanaug...@gmail.com> wrote:
> On Jan 9, 2:05 pm, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> Brian writes:
>>> I am using IDL 7.0 with ENVI 4.5.  I have a .sav file which is
>>> supposed to create a dropdown menu on the ENVI toolbar.   It works
>>> correctly when the .sav file is RESTORED upon starting IDL (usually
>>> only happens the first time I attempt it).  After that it gets
>>> COMPILED upon startup.  It also works with the older versions of IDL/
>>> ENVI.
>
>>> My question is this:  Is there anyway to specify if IDL 7.0 RESTORES a
>>> file upon startup, as opposed to COMPILING?  Has anyone else had this
>>> problem?
>
>> This doesn't make sense to me. An ENVI save file will
>> contain some sort of IDL procedure or function that will
>> be called from ENVI. These files are saved in the ENVI
>> "save/restore" directory.
>
>> If the file was restored, why would ENVI (or IDL, for that
>> matter) be compiling it?
>
>> Something fishy here you are not telling us. :-)
>
>> 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.")
>
> Perhaps my terminology is incorrect.  Yes, I have a created an
> ENVI .sav file and added it to the save_add directory.  This is a save
> of many routines that use both ENVI and IDL functions and procedures.
> My issue is that it doesn't "RESTORE" the file everytime I open an
> instance of ENVI, sometimes it merely "COMPILES" the file.  When it
> "RESTORES" the .sav, my toolbar exists and everything works great!
> however, more often that not, it "COMPILES" the .sav and my toolbar is
> not there:(
>
> When I refer to RESTORE and COMPILE above, I'm referring to the
> messages I get in the IDL console upon startup of ENVI, NOT the
> commands.  Hope this helps to decypher my previous message.
>
> Thanks,
> Brian

Could you just make a .pro file that restores the rest of the files
you need?
Re: Compile/Restore on Startup [message #64662 is a reply to message #64661] Fri, 09 January 2009 12:15 Go to previous message
Brian is currently offline  Brian
Messages: 27
Registered: March 2001
Junior Member
On Jan 9, 2:05 pm, David Fanning <n...@dfanning.com> wrote:
> Brian writes:
>> I am using IDL 7.0 with ENVI 4.5.  I have a .sav file which is
>> supposed to create a dropdown menu on the ENVI toolbar.   It works
>> correctly when the .sav file is RESTORED upon starting IDL (usually
>> only happens the first time I attempt it).  After that it gets
>> COMPILED upon startup.  It also works with the older versions of IDL/
>> ENVI.
>
>> My question is this:  Is there anyway to specify if IDL 7.0 RESTORES a
>> file upon startup, as opposed to COMPILING?  Has anyone else had this
>> problem?
>
> This doesn't make sense to me. An ENVI save file will
> contain some sort of IDL procedure or function that will
> be called from ENVI. These files are saved in the ENVI
> "save/restore" directory.
>
> If the file was restored, why would ENVI (or IDL, for that
> matter) be compiling it?
>
> Something fishy here you are not telling us. :-)
>
> 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.")

Perhaps my terminology is incorrect. Yes, I have a created an
ENVI .sav file and added it to the save_add directory. This is a save
of many routines that use both ENVI and IDL functions and procedures.
My issue is that it doesn't "RESTORE" the file everytime I open an
instance of ENVI, sometimes it merely "COMPILES" the file. When it
"RESTORES" the .sav, my toolbar exists and everything works great!
however, more often that not, it "COMPILES" the .sav and my toolbar is
not there:(

When I refer to RESTORE and COMPILE above, I'm referring to the
messages I get in the IDL console upon startup of ENVI, NOT the
commands. Hope this helps to decypher my previous message.

Thanks,
Brian
Re: Compile/Restore on Startup [message #64666 is a reply to message #64662] Fri, 09 January 2009 11:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian writes:

> I am using IDL 7.0 with ENVI 4.5. I have a .sav file which is
> supposed to create a dropdown menu on the ENVI toolbar. It works
> correctly when the .sav file is RESTORED upon starting IDL (usually
> only happens the first time I attempt it). After that it gets
> COMPILED upon startup. It also works with the older versions of IDL/
> ENVI.
>
> My question is this: Is there anyway to specify if IDL 7.0 RESTORES a
> file upon startup, as opposed to COMPILING? Has anyone else had this
> problem?

This doesn't make sense to me. An ENVI save file will
contain some sort of IDL procedure or function that will
be called from ENVI. These files are saved in the ENVI
"save/restore" directory.

If the file was restored, why would ENVI (or IDL, for that
matter) be compiling it?

Something fishy here you are not telling us. :-)

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Some errors about 7.0.3 update
Next Topic: Two Million Visitors!

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

Current Time: Fri Oct 10 15:07:05 PDT 2025

Total time taken to generate the page: 0.79836 seconds