If you are using interfaces & reference counting ala COM to control lifetime
management (eg Descended from TInterfacedObject) you can't have each
interface referencing each other, else they will never die.

Otherwise Interfaces will solve your problem very nicely - you can just
implement dummy _addRef &  _Release which do have any effect on lifetime
management.
Myles.

> -----Original Message-----
> From: Kerry Sainsbury [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 19, 1999 3:08 PM
> To:   Multiple recipients of list delphi
> Subject:      RE: [DUG]:  Circular unit references - gotta love'm!
> 
> --- Nahum Wild <[EMAIL PROTECTED]> wrote:
> > Good idea, from what I understand of interfaces that should work
> > without the
> > circular reference problem.
> > 
> > Thanks!
> > 
> > I'm going to take the time to refigure my unit reference structure
> > anymay
> > because this problem has pointed it out as being a mess. :(
> 
> Whew! I feel slightly vindicated about my comment about circular
> references usually indicating a problem with design.
> 
> The place I encounter it most often is with people who have a zillion
> forms, all of which have references to one another. Yuck!
> 
> Cheers,
> Kerry S
> Systems Engineer, Inprise NZ. [EMAIL PROTECTED]
> 
> _______________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com.au address at http://mail.yahoo.com.au
> 
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to