Re: Save files and LinkImage routines [message #10414 is a reply to message #10404] |
Mon, 24 November 1997 00:00   |
greenwoodde
Messages: 10 Registered: October 1996
|
Junior Member |
|
|
I wrote...
> Following the recent discussion on generating save files (see the
> "Automatic Compiliation of IDL Programs, [...]
>
> If I invoke IDL, ".run" or ".compile" the main program and then invoke
> RESOLVE_ALL, everything gets compiled until RESOLVE_ALL fails with an
> "% Attempt to call undefined procedure/function: 'GB'." (GB is defined
> via a linkimage call.) If I 'save,/routines' anyway and attempt to run
> my application it fails with an "attempt to call undefined procedure/
> function" on the first attempt to call a linkimage-defined procedure.
Thanks to Jim Pendleton of RSI, I have the answer. When creating the
save file I first execute the procedure which contains all the linkimage
calls, then RESOLVE_ROUTINE my main routine and RESOLVE_ALL. Then I do
the save. When I run the application, I first execute the procedure
which contains the linkimage calls and then restore the saved routines.
Apparently this is described in the IDL Runtime Guide, of which I don't
have a copy.
Dave
--------------
Dave Greenwood Internet: Greenwoodde@ORNL.GOV
Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself
|
|
|