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

Home » Public Forums » archive » Freeing memory
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Freeing memory [message #7047] Tue, 10 September 1996 00:00
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
Is it my imagination or is idl not freeing all the memory it uses for
procedures and functions?

Here's what I did to check:

I have a function that reads data and does some base processing. As the
procedure is running I monitor my system memory using SGI's sysmon.
After the function is complete I use some % of memory.

IDL> help,/mem
heap memory in use: 13710221, calls to MALLOC: 25781, FREE: 25676

I then save all the data to a file and quit idl.

I then start idl and restore the data and compile the function and there
is less memory used.

IDL> help,/mem
heap memory in use: 13709644, calls to MALLOC: 119, FREE: 14

My question is why? And why is there very little descrpancy in the
help,/mem for the heap used? The sysmon looks like alot more than a 1%
difference?

I realize that this ain't too scientific, but the question still
remains.

Thanks in advance,

--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading Cray binary data (float)
Next Topic: High resolution grid shading

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

Current Time: Wed Oct 08 20:00:02 PDT 2025

Total time taken to generate the page: 0.00563 seconds