Joanna Carter (TeamB) Guest
|
Posted: Fri Nov 14, 2003 12:12 pm Post subject: Re: Dangling references |
|
|
SocketSlave wrote:
| Quote: | I find single references to objects restricts my designs at times and
want a solution to dangling pointer problems that I can get into when
I have multiple references to objects. In C++ smart pointers are put
forward for this role. I have not seen Delphi Implementations
attempted is this due to not having templates and operator functions
perhaps? What is the Delphi approach to solving dangling object
references?
|
Nil them when they are no longer used or immediately after freeing them.
Joanna
--
Joanna Carter (TeamB)
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker
|
|