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

Home » Public Forums » archive » Re: question on destroying objarr's
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: question on destroying objarr's [message #62063 is a reply to message #62062] Tue, 19 August 2008 12:02 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Well, it's still there in the sense that variable myObjArr
> is still listed as having been previously defined as
> *something* in the IDL session. But all the objects in
> that object array are null objects. You can't use them
> for anything. They don't point to anything. They are not
> taking up any space on the heap. Etc.
>
> In other words, you are in great shape! :-)

Here is another way of looking at this:

IDL> myObjArr=OBJARR(3)
IDL> myObjArr[0]=Obj_New('idlanroi')
IDL> Help, /HEAP
Heap Variables:
# Pointer: 0
# Object : 1

<ObjHeapVar21> STRUCT = -> IDLANROI Array[1]

IDL> OBJ_DESTROY, myObjArr
IDL> Help, /HEAP
Heap Variables:
# Pointer: 0
# Object : 0

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D graphing
Next Topic: Re: Today's IDL Lesson

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

Current Time: Sun Oct 12 09:41:39 PDT 2025

Total time taken to generate the page: 1.60127 seconds