2010/4/5 Werner Van Belle <wer...@yellowcouch.org>: >> Pest was just a reference pointer to the first instance, so no need to >> free it. But setting it to nil after Test was freed is a good habit. >> > 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. I attached sample code with interfaces for you. -- cobines
project1.lpr
Description: Binary data
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal