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

Home » Public Forums » archive » deallocating ptrs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
deallocating ptrs [message #44353] Sat, 11 June 2005 08:53 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
Hi,
I am reading an HDF, and have a template created with the HDF_browser.
The template is a structure that has over 200 pointers deeply nested in
several labrynthical "subnested structure arrays of structure ptr array
structures".
:)

So, I tried to deallocate this monster with a heap_free call, and it doesn't
get
deallocated. (IDL 6.1)
In fact I have for the moment been reduced to a heap_gc call, which seems
inelegant.

So why doesn't heap_free free the heap? It looks like is isn't even trying.
It goes from 238 to 164 ptrs.

Anyone have a nice generic deallocating routine to crawl down the structure.
I actually have an old routine that prints out a structure nicely, that
recursively
steps through each element. It could be modified to test each element and
deallocate it if it is a ptr, but there has to be a routine that already
does that.

Cheers,
bob
[Message index]
 
Read Message
Read Message
Previous Topic: Re: deallocating ptrs
Next Topic: Determine if class has method/property

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

Current Time: Sun Oct 26 21:34:05 PDT 2025

Total time taken to generate the page: 0.87975 seconds