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

Home » Public Forums » archive » Re: IDL Memory Leaks
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: IDL Memory Leaks [message #27842 is a reply to message #27673] Tue, 06 November 2001 07:15 Go to previous messageGo to previous message
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
Myron Brown <brownmz1@jhuapl.edu> writes:

> 4. The code includes repetitive reassignments of variables to large
> arrays, even within a routine (still in scope). I tried to assign
> variables to zero each time, but it doesn't seem to make a
> difference. Should this really be necessary?

I'd guess this as the problem. At least I found a similar thing in my
codes. I had a repetitive

bispektrum = complexarr ( 2 * cutoff + 1, 2 * cutoff + 1, $
2 * Mask_Depth + 1, Mask_Depth + 1 )

in there, and it was eating up all available memory after some time.
I had to change it to setting the variable to zero,
bispektrum(*) = null
then the problems were gone.

This was in IDL 4.01. I have never checked again if the problem is
still there...

Pit

PS: Please try not to do unneccessary full quotes. Thank you

--
Dr. Peter "Pit" Suetterlin http://www.astro.uu.nl/~suetter
Sterrenkundig Instituut Utrecht
Tel.: +31 (0)30 253 5225 P.Suetterlin@astro.uu.nl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NETSCAPE BOMB - dont open/preview "Re: my pretty floor won't pour before I expect it"
Next Topic: FFT issues

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

Current Time: Sat Oct 11 16:18:47 PDT 2025

Total time taken to generate the page: 0.31565 seconds