| Re: Garbage collection and Memory [message #2173 is a reply to message #2105] |
Fri, 03 June 1994 06:58   |
hevans[2]
Messages: 5 Registered: June 1994
|
Junior Member |
|
|
In article <gumley-020694132201@macfeng.gsfc.nasa.gov>, gumley@climate.gsfc.nasa.gov (Liam E. Gumley) writes:
|>In article <1994Jun2.155555@estwm0.wm.estec.esa.nl>,
|>hevans@estwm0.wm.estec.esa.nl (Hugh Evans) wrote:
|>
|>> I am using PV~Wave v4.01 (VAX/VMS) and after loading in large data sets and
|>> manipulating them, PV~Wave runs out of memory (core). This is despite creating
|>> more variables.
|>>
|>> The question I have is: Is there any command that invokes a garbage collector
|>> to clean up the memory used? Or do I just have to save the session, exit and
|>> restart the session?
|>
|>If you have a large variable array which is longer needed, just redefine it
|>as a single value variable, e.g.
|>
|>array = fltarr(10000,10000)
|>(processing steps)
|>array = 0
|>
|>See page 12-7 of the IDL User's Guide (v3.5).
|>
Perhaps I phrased my question badly.
I have discovered that after using Wave for an extended period that it slowly
grabs more and more memory, even if new variables are not created, until
finally it runs out of core memory. Whereas by saving the session and
restarting it, the previous operation that crashed on a memory allocation
problem will complete successfully.
This, by the way, is being done on VAX/VMS.
--
Hugh Evans
European Space Research and Technology Centre - Noorwijk, Netherlands
Internet: hevans@wm.estec.esa.nl SPAN: ESTWM2::hevans
It's a nice touch, when you're a houseguest, to make your bed.
It's a particularly nice touch to make it a place of delight
for your host's teen-age daughters.
P.J. O'Rourke - Modern Manners
|
|
|
|