[fpc-devel] Suggestion: reference counted objects
Boian Mitov
mitov at mitov.com
Thu Sep 25 19:35:08 CEST 2014
Strings do not contain pioneers themselves.
Any standard tree design however usually contains circular reverences, and
pose the thread of leak if Weak pointers are not used usually for the Parent
pointer in the children.
Double linked list is another example.
With best regards,
Boian Mitov
-------------------------------------------------------
Mitov Software
www.mitov.com
-------------------------------------------------------
-----Original Message-----
From: Michael Schnell
Sent: Thursday, September 25, 2014 2:59 AM
To: FPC developers' list
Subject: Re: [fpc-devel] Suggestion: reference counted objects
On 09/22/2014 08:37 PM, Boian Mitov wrote:
> Honestly if you don’t know what you are doing when using ARC, I doubt a
> bit, you really know what you are doing otherwise either ;-) .
Ref counted strings are no problem with any (normal) use of same.
In this thread you find an example describing how ARC Objects easily can
impose memory leaks.
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list