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

Home » Public Forums » archive » Memory problems update.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Memory problems update. [message #241] Wed, 08 January 1992 10:24 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
To test the memory limitations of IDL version 1 versus version 2.2.1, I ran the
following program to see where it would crash.

for i = 1,100
j = 100*i
print,j
a = fltarr(j,j)
endfor
end

I have a pagefile quota of 78471 blocks. I chose this method primarily because
I had heard rumors that if one recreates an array that already exists with a
size bigger than it had before, the old memory is not deallocated.

IDL version 1 was unable to obtain enough memory to build the 2000x2000 array,
while IDL version 2 was unable to build the 1400x1400 array.

This seems to be consistent with IDL version 2 not deallocating the memory,
since 1400x1400 would then be where the accumulated total would exceed the
pagefile quota.

Just saying "a = fltarr(2000,2000)" in a seperate IDL 2.2.1 session does work,
however, as does

a = fltarr(1900,1900)
a = fltarr(2000,2000)

Does anybody know what causes this? Is the rumor I heard true?

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: crossspectra
Next Topic: calling fortran subroutines in .dll from IDL

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

Current Time: Sat Oct 18 13:49:27 PDT 2025

Total time taken to generate the page: 1.76027 seconds