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

Home » Public Forums » archive » yet another idl memory question
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: yet another idl memory question [message #66788 is a reply to message #66699] Mon, 08 June 2009 12:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paolo writes:

>> Of course, data=3D0B doesn't free *all* the memory,
>> and doing this many times leads, I suspect, to the memory
>> fragmentation that is the heart of the problem. I suggest
>> you use UNDEFINE. That really does release *all* the memory
>> associated with a variable.
>
> Really? Certainly it's not a substitute for ptr_free, is it?
> At least not in my system:

Well, I think you are confusing "variable", which is what
I claim, with "pointer to a variable", which I admit UNDEFINE
doesn't free. (I think it was written *before* pointers, to
tell you the truth!)

But in any case, easily fixed. Just test to see if the
variable is a pointer or object, destroy it if so, and
carry on undefining the variable.

Maybe I'll get around to it later today. :-)

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 4 byte integers
Next Topic: idl encoder/decoder of json

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

Current Time: Thu Oct 09 22:44:43 PDT 2025

Total time taken to generate the page: 0.80161 seconds