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

Home » Public Forums » archive » Re: dymamic memory allocation
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: dymamic memory allocation [message #41878 is a reply to message #41876] Mon, 06 December 2004 10:08 Go to previous messageGo to previous message
Marc Reinig is currently offline  Marc Reinig
Messages: 30
Registered: June 2004
Member
"Mark Hadfield" <m.hadfield@niwa.co.nz> wrote in message
news:cp0fej$j1r$1@newsreader.mailgate.org...
> In IDL, variables are created at run time and do not need to be "declared"
> beforehand. Consider the following code
>
> pro test
> a = dist(30,40)
> surface, a
> a = 'My string'
> print, a
> end
>
> The first line of the procedure creates a floating point array dimensioned
> (30,40) and associates the variable name "a" with it. (The dimensions in
> this example are known at compile time, but they do not need to be.) The
> second line plots it as a surface plot. The third line creates a string
> and associates the name "a" with it. (The array created in line 1 is no
> longer accessible to IDL and the memory associated with it may--or may
> not--be returned to the operating system.) The fourth line prints the
> string to the console.


When would it be returned to the OS? Clearly (I hope) when IDL was shut
down. How about when a break occurs? It would seem that a program could
inadvertantly eat up much of the available memory this way.

Does IDL have a background process that eventually free's memory that is no
longer associated with variables?

How would I manually free the memory or tell IDL to?

Marco
________________________
Marc Reinig
UCO/Lick Observatory
Laboratory for Adaptive Optics
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Continuing a poscript plot after closing
Next Topic: File Pointer

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

Current Time: Sun Nov 30 10:46:54 PST 2025

Total time taken to generate the page: 0.26866 seconds