Re: TStreamAdapter need to be freed?

"Marcel Popescu" <[email protected]> Thu, 14 Aug 2003 15:51:01 +0300
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <03fb01c36262$b7593620$726e9cd9@mark>
From: Richard Le Mesurier (Investec Employee Benefits)

> Do you need to explicitly free a TStreamAdapter object?
>
> From the OLH, it is a TInterfacedObject, which I think
> means it will free itself when the interface is no longer
> needed? But I am new to interfaces, so would like to
> confirm that with you guys.

This is only true if you have an interface pointer to it (an IUnknown
pointer in this case).

Mark


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/