X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Mar 2007 12:19 PM by  anon
IDL runtime call ENVI routines
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Mar 2007 12:19 PM
    Hi, I am trying to write some program that can run in IDL runtime that uses ENVI routines. I have included the following code ENVI, /restore_base_files ENVI_batch_init The program runs fine in IDL IDE mode but when I exported as a standalone *.sav file, it calls up the ENVI menu and stops. Does anyone share the same problem?

    Deleted User



    New Member


    Posts:
    New Member


    --
    01 Mar 2007 12:19 PM
    Try the following: - Make sure that you include "compile_opt idl2" at the beginning of your program. - When you build a sav file, do not use "resolve_all. /continue_on_error." Just open your .pro in a clean IDL-only session, compile it, and then do a save, filename=’mysavfile’, /routines. - In testing it, if you have any library routines (IDL or ENVI) that aren’t being recognized at runtime, rebuild the save file using a forward_function call specifying only the routines that were not recognized. That *should* do the trick....
    You are not authorized to post a reply.