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

Home » Public Forums » archive » Re: Save files and LinkImage routines
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: Save files and LinkImage routines [message #10404] Tue, 25 November 1997 00:00
mallors is currently offline  mallors
Messages: 76
Registered: November 1997
Member
In article <24NOV97.15395956@feda01.fed.ornl.gov>,
greenwoodde@feda01.fed.ornl.gov (Dave Greenwood) writes:
>
> Apparently this is described in the IDL Runtime Guide, of which I don't
> have a copy.
>

I believe this (and other documents such as the Reference Guide) is
available from the RSI ftp site.


--
Dr. Robert S. Mallozzi
University of Alabama in Huntsville
http://cspar.uah.edu/~mallozzir/
Re: Save files and LinkImage routines [message #10414 is a reply to message #10404] Mon, 24 November 1997 00:00 Go to previous message
greenwoodde is currently offline  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
Re: Save files and LinkImage routines [message #10423 is a reply to message #10414] Fri, 21 November 1997 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Dave Greenwood 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.
>

unfortunately I cannot help you with the linkimage or save problem, but
I experienced the same behaviour for CALL_PROCEDURE or CALL_FUNCTION
routines. It notes in the manual that these would not be found by
RESOLVE_ALL, and that is not more than true. One possibility to avoid
*this* little problem is to resolve your GB routine explicitely *before*
you RESOLVE_ALL, using
RESOLVE_ROUTINE,'GB'
It's possible that this would also solve your other problem, *unless*
this has something to do with limitations on SAVE files in conjunction
with linkimage or call_...

Martin.


------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
186 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
IDL-homepage: http://www-as.harvard.edu/people/staff/mgs/idl/
------------------------------------------------------------ -------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: box plot
Next Topic: Re: Pixel Information

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

Current Time: Sat Oct 11 08:09:55 PDT 2025

Total time taken to generate the page: 1.12199 seconds