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

Home » Public Forums » archive » Re: unloading a dlm...
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: unloading a dlm... [message #26617 is a reply to message #26612] Mon, 10 September 2001 16:08 Go to previous messageGo to previous message
Richard Younger is currently offline  Richard Younger
Messages: 43
Registered: November 2000
Member
Randall Skelton wrote:
>
> I suspect this is impossible, but does anyone know of a way to force IDL
> unload a DLM (without doing a reset_session).
>
> My problem is that I've quickly bolted a large Fortran model onto IDL and
> nearly every variable is in a common block (i.e. a global C structure).
> It amounts to me consuming an extra 50MB of RAM after this particular DLM
> is loaded :( It would be nice to reclaim this memory when I am done with
> the model...

I'm afraid you're just giving ammunition to the common block snobs
(myself among them). I can't help you unload a dlm, but I can think of
a few poor alternatives. :-)

If you happen to be on an Intel platform and not developing for anyone
else, RAM is dirt cheap compared with six months ago. Well less than
US$100 will get you an extra 128 Megs of memory and you can let Moore's
law absorb the extra 50 MB hit.

If that's not feasible, you can use the aforementioned
.full_reset_session from the main level in a script (@-file).

Compiling as an executable and running with spawn, communicating with
pipes or sockets and the like, would probably at least a couple steps
backwards.

There might be an obscure option on your F** compiler to change the way
it compiles common blocks, but since I haven't really used Fortran much,
this is pure speculation on my part.

All of those alternatives are limited and clunky, if they exist at all.
I don't know any better way than to do the obvious (time consuming)
thing and gain some quality time with your favorite Fortran compiler and
search-and-replace tool.

Good luck,
Rich

--
Richard Younger
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Rotate volumes
Next Topic: Calling LAPACK from IDL

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

Current Time: Fri Oct 10 06:25:29 PDT 2025

Total time taken to generate the page: 0.64074 seconds