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

Home » Public Forums » archive » Re: Deallocate Memory for a Structure
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: Deallocate Memory for a Structure [message #45805 is a reply to message #45804] Sat, 15 October 2005 00:15 Go to previous messageGo to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
Robert Moss wrote:
> Reimar Bauer wrote:
>>
>> a=create_Struct('test',1)
>> a=0
>>
>> or
>>
>> dummy=temporary(a)
>>
>
> dummy = temporary( a ) does not free any memory. It simply renames the
> variable that contains the structure. Setting a to zero certainly does
> work.
>
>
> --
> Robert Moss, PhD

But, if you place dummy=temporary(a) in a procedure, it does free up
memory - see DF's tip at
http://www.dfanning.com/tips/variable_undefine.html

Andrew
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: List of Points --> ROI via IDLVECTOR data type for iimage itool
Next Topic: Loading ASCII data into an array

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

Current Time: Sat Oct 11 01:31:49 PDT 2025

Total time taken to generate the page: 0.40230 seconds