BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Dangling references

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Joanna Carter (TeamB)
Guest





PostPosted: Fri Nov 14, 2003 12:12 pm    Post subject: Re: Dangling references Reply with quote



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



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.