[fpc-pascal] Reference Counting
graemeg.lists at gmail.com
Mon Apr 5 12:36:48 CEST 2010
On 05/04/2010, cobines <cobines at gmail.com> wrote:
> > I'm not sure that is correct. Once you free Test, Pest still points to
> > the same non existing object and you can use assigned to check it,
> Pest would be a dangling pointer and should not be accessed.
Correct, and that was what I was trying to get across. Accessing it
after Test was freed will cause Access Violations, so setting it to
nil is the correct thing to do.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the fpc-pascal