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 #45804] Sat, 15 October 2005 04:07 Go to previous message
Armando Riccardi is currently offline  Armando Riccardi
Messages: 1
Registered: October 2005
Junior Member
andrew.cool@dsto.defence.gov.au wrote:
> 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
>

The correct command is:
dummy=size(temporary(a))
that deallocate memory.

Armando
[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: Thu Oct 09 07:37:24 PDT 2025

Total time taken to generate the page: 2.16034 seconds