I have created a SAVE file (my_app.sav) containing several PRO files compiles that compose my application. My call the procedure "my_app" to run this application inside IDL.
When I run the SAVE file from IDL, entering the following at the command prompt:
------------------------------------------------
RESTORE, 'C:\dir\my_app.sav'
my_app
------------------------------------------------
It works very well like this.
Since I use several function from ENVI, in the begining of my program I restore the core files and start ENVI in batch mode:
--------------------------------------------------------
ENVI, /restore_base_save_files
ENVI_BATCH_INIT, log_file = 'batch.log'
--------------------------------------------------------
It doesn't block here if I run my program inside IDL.
But if I try to use the IDL Virtual Machine... it just refuses to run my code.
I tried to open the SAVE file using the IDL VM from several ways...
1) Selecting Start Programs -> IDL 6.4 -> IDL Virtual Machine. I clicked on the splash screen and opened my_app.sav, but then it just opened ENVI and didn't runned my code.
2) Using the Windows command line and I got the same result than before.
I think it just restores ENVI files and stops. Why isn't he executing my code?
Any suggestions?
Thank you in advance,
Paulo Resende
|