🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #32546

Re: TInterfacedObject question

#32546
From: Brendan Bosman
Date: Fri, 22 Nov 2002 11:36
44 lines
2462 bytes
Reference count between an owner and a child:


Owner to child --> hard reference

Child ot owner --> Soft reference





"Developer Express - Jimmy Tharpe"
<jimmy@I.do.not.like.SPAM.devexpress.com.com> wrote in message
news:3ddd6fd0@newsgroups.borland.com...
> "Dettmer, A. L." <armando@eps.ufsc.br> wrote in message
> news:3DDD31BC.4090203@eps.ufsc.br...
> > >
> > > Reference counting can get to be a tricky thing.
> >
> > Well I can't commento on that but...
> >
> >> The way it is done now (with the Owner concept) is much more simple.
> >
> > the way tht TInterfacedObjects work it it's quite similar to automatic
> > garbage collector what some people would like (I normally like to have
> > control about my objects).
>
> It's similar, but the differences are very important...
>
> As a quick example, imagine having a treeview component in which parent
> nodes holds a reference to their child nodes, and child nodes hold a
> reference to their parent... How then will the reference count drop to
zero?
>
> --
> -Jimmy
> Check out ExpressWeb: http://www.devexpress.com/products/vcl/ewf/
> Full-powered RAD Web Development
> * WYSIWYG designer in Delphi * Full WebBroker and WebSnap integration
> * Superior Browser support   * Advanced Visual Web Controls
> * Server-Side Scripting       * and much more...
> __
>
>
Technical Details
Message-ID: <3dde1744$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3DDCC8AE.5070901@eps.ufsc.br> <3ddcd40c@newsgroups.borland.com> <3DDCEA87.7020401@eps.ufsc.br> <3ddcf2fe$1@newsgroups.borland.com> <3DDD31BC.4090203@eps.ufsc.br> <3ddd6fd0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,ffca35074b820550
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2002-11-22 04:15:45 PST
From: "Brendan Bosman" <brendan.bosman@syssol.ie>
Newsgroups: borland.public.delphi.language.objectpascal
References: <3DDCC8AE.5070901@eps.ufsc.br> <3ddcd40c@newsgroups.borland.com> <3DDCEA87.7020401@eps.ufsc.br> <3ddcf2fe$1@newsgroups.borland.com> <3DDD31BC.4090203@eps.ufsc.br> <3ddd6fd0@newsgroups.borland.com>
Subject: Re: TInterfacedObject question
Date: Fri, 22 Nov 2002 11:36:55 -0000
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 213.105.178.230
Message-ID: <3dde1744$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037965124 213.105.178.230 (22 Nov 2002 03:38:44 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail