[Gc] Question about gc_cleanup

Miki Tebeka mtebeka at qualcomm.com
Wed Nov 2 05:13:45 PST 2005


Hello Ben,

> >The problem is that it looks like the finalizers aren't called:
> You should not rely on finalisers ever being called. See Hans Boehm's 
> paper "Destructors, Finalizers, and Synchronization" 
> <http://www.hpl.hp.com/techreports/2002/HPL-2002-335.html> for a full 
> explanation of the difference between destructors and finalisers.
So how can I avoid resource leaks? (Apart from closing files manually).

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mtebeka at qualcomm.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 207 bytes
Desc: not available
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20051102/07b5388a/attachment.pgp


More information about the Gc mailing list