|
Application Programming: Distributing Virtual Machine Applications |
|
An IDL application created in IDL 6.0 or later that does not use the EXECUTE function can be saved in one or more SAVE files that will run in the IDL Virtual Machine. If an IDL application is to be run in the IDL Virtual Machine, it is not necessary to include an IDL distribution with the SAVE file because IDL Virtual Machine is installed on the user's machine. The SAVE file need only include your own code, creating a smaller file that is easier to distribute.
To create SAVE files to run in the IDL Virtual Machine, do one of the following:
.pro files with the SAVE procedure. See Creating SAVE Files of Program Files for details, and refer to SAVE.
Export with the Save File (.sav) option specified.
| Note Creating SAVE files of object-oriented programs requires the use of RESOLVE_ALL with the CLASS keyword. |
There are several ways to include the necessary routines in your application:
.pro files to a project, and build the project.
.sav file or restore it explicitly using RESTORE.
.sav file uses the same name as the procedure or function it contains, this allows you to call each routine without having to explicitly restore its SAVE file because IDL will search the current directory and the defined !PATH for the .sav file and restore it automatically when it encounters the first call to the routine.
The IDL Virtual Machine will execute IDL routines stored in SAVE files created with IDL version 6.0 and later. Any SAVE files created with previous versions of IDL must be recompiled using IDL 6.0 or later for them to run with the Virtual Machine.
IDL Online Help (March 06, 2007)