Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   In Delphi, avoid having a TComponent descendant implement interfaces, unless you are (https://www.delphipraxis.net/206368-delphi-avoid-having-tcomponent-descendant-implement-interfaces-unless-you.html)

DP News-Robot 15. Dez 2020 06:10

In Delphi, avoid having a TComponent descendant implement interfaces, unless you are
 
Every now and then I see code, where a class descending from TComponent*implements some interfaces, only interface references are used to the instances, and the expected behaviour is that the instances will free themselves when all the references went out of scope. Bummer: TComponent*by default is not reference counted. It is when you assign VCLComObject*an […]

Weiterlesen...


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:08 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz