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

Home » Public Forums » archive » Reference counting
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: Reference counting [message #55837 is a reply to message #55818] Thu, 20 September 2007 13:13 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Tue, 18 Sep 2007 18:57:12 -0700, Robbie wrote:

>
> For future reference, there is an undocumented routine called
> HEAP_NOSAVE.
>
> HEAP_NOSAVE allows me to specify that the reference counting pointer
> should not be saved.
> I can then recount the number of references with a single pass of
> the ::RESTORE method.
>
> I hope this is perfectly clear to all those concerned :-P

That's a useful function, and documented for me in v6.3. I have long
saved objects to disk for project storage, but "strip" by hand the
pointers I don't wish to save (e.g. ones containing widget trees, etc.).
This is a much cleaner method: simply call HEAP_NOSAVE, ptr, and even if
the save crashes (e.g. out of disk space), your object will be intact.

Thanks,

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Reading Raw Image
Next Topic: Re: Widgets to ION JAVA

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

Current Time: Sat Oct 11 06:25:23 PDT 2025

Total time taken to generate the page: 0.40442 seconds