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 #45811 is a reply to message #45806] Fri, 14 October 2005 00:34 Go to previous messageGo to previous message
peter.albert@gmx.de is currently offline  peter.albert@gmx.de
Messages: 108
Registered: July 2005
Senior Member
Or, if you are using a structure of pointers:

for i = 0, n_tags(struc) -1 do $
if ptr_valid(struc.(i)) then ptr_free, struc.(i)

or, if you just want to get rid of all pointers:

ptr_free, ptr_valid(/cast)

Regards,

Peter
[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: Sun Oct 12 08:07:42 PDT 2025

Total time taken to generate the page: 1.60052 seconds