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 #45812 is a reply to message #45811] Fri, 14 October 2005 00:06 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Archais wrote:
> I am reading data files in IDL into a structure that was defined by
> ascii_template. Once the data is loaded, the structure is fairly
> large. The data files are organized in days and I have the data
> loading routine in a loop over the number of days in a year so that the
> same structure gets written over with a new day's data for each
> iteration. The program starts out fine, loading the data fairly
> quickly, but the program begins slowing down gradually. I'm pretty
> sure its a memory issue, but I can't seem to find any routine that will
> deallocate the memory used by the structure. Is there any such
> routine, and if so what is it?
>
> Thanks
> Archais
>


a=create_Struct('test',1)
a=0

or

dummy=temporary(a)


If you use pointers


a=ptr_new(create_Struct('test',1))

ptr_free,a



Did you have profiled your routine?

cheers

Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[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: Fri Oct 10 11:00:50 PDT 2025

Total time taken to generate the page: 0.00702 seconds