On Tue, Jul 6, 2010 at 4:41 PM, Graeme Geldenhuys
<[email protected]> wrote:
> On 6 July 2010 19:51, Marcos Douglas <[email protected]> wrote:
>>> That's the problematic one I think.
>>
>> Can an exception happen in Free method?!  :-O
>
> Yes! I often have to debug those in our complex business objects.
>

You got that right.  Which is my point exactly.  If free blows out w/o
a nested exception handle to catch it... The entire object goes into
limbo and will never be free and thus cause a memory leak.  Tell me
someone here realises this (other than me ;-) is the essential point
of this entire thread or I'm going to be very disappointed...
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to