[fpc-pascal] Reference Counting
Graeme Geldenhuys
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.
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list