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

Home » Public Forums » archive » How to create a sav file for a system based on catalyst
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to create a sav file for a system based on catalyst [message #87891 is a reply to message #87886] Mon, 03 March 2014 08:21 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Monday, March 3, 2014 7:14:28 AM UTC-6, David Fanning wrote:

>
> Yes, objects are always a problem. I always say that Resolve_All
>
> resolves "almost all" routines, but it ignores objects. (I know about
>
> the CLASS keyword, but in practice that seldom helps me.)
>

Hmm. I find quite the opposite - class _does_ help me - although I'm not maintaing projects quite as extensive as yours.

To build my applications, I have a "make" file that I run (as a script) in a fresh session of IDL.

All (actually, most) of the routines are in one folder, so the make file starts with this:

files = FILE_SEARCH('path_to_dir/*.pro')
FOR i=0, N_ELEMENTS(files)-1 DO RESOLVE_ROUTINE, FILE_BASENAME(files[i], '.pro'), /EITHER

There are some routines not picked up by this, including my generic object handlers (s/o to Mike Galloy), so I also have things like:
RESOLVE_ROUTINE, 'pmb_object_event_handler'
RESOLVE_ROUTINE, 'pmb_object_cleanup'

Finally, like David said, objects (and structure definitions) are not picked up by RESOLVE_ROUTINE, so I have to include things like this too:
RESOLVE_ALL, CLASS='cgCmdWindow', /CONTINUE

Finally, I have the line:
SAVE, /ROUTINES, filename=save_filename

It's not quite as easy as the "Build Project," and it takes a little hand holding (when I add a new object, I have to remember to put it in the make file), but I find it gives me more flexibility and, more importantly, it works.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI_SVM_DOIT Memory Problem
Next Topic: IDL 8.3's HDF version and HDF5 version

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

Current Time: Wed Oct 08 20:13:09 PDT 2025

Total time taken to generate the page: 0.00457 seconds