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

Home » Public Forums » archive » Re: IDL Shapefile Object
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: IDL Shapefile Object [message #28296 is a reply to message #28295] Thu, 29 November 2001 15:47 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
From: "David Fanning" <david@dfanning.com>
> It has been pointed out to me that there is
> a new routine in IDL 5.5 called HEAP_FREE...
> ...
> Anyway, despite the documentation that is meant to
> frighten you away from using it (ala Heap_GC), it
> is designed to help you clean up in those situations
> where you don't know what it is you have been handed.

I note that the first "frightener" in the HEAP_FREE documentation is:

"When freeing object heap variables, HEAP_FREE calls OBJ_DESTROY
without supplying any plain or keyword arguments. Depending on the objects
being released, this may not be sufficient. In such cases, the caller must
call
OBJ_DESTROY explicitly with the proper arguments rather than using
HEAP_FREE."

Hey, I didn't know you *could* supply arguments to OBJ_DESTROY (though I
should have known because it's right there in the OBJ_DESTROY
documentation). Has anyone actually written code that *uses* this feature.
And if so, why? It seems to me that when you tell an object to destroy
itself, then it's up to the object to know how to do it.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research




--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Sparse matrix algorithms
Next Topic: Re: Setting history size in idlwave

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

Current Time: Wed Oct 08 19:02:32 PDT 2025

Total time taken to generate the page: 0.00202 seconds