![]() |
Hello Old New Leaky Friend
Developers that extensively use interfaces in Delphi probably know about a long-standing issue with the compiler, where interface parameters declared as const or[ref] will cause a memory leak if a reference-counted object instance isconstructed directly at the call site.Specifically, the following code would create a leak:procedure LeakTest(const Intf: IInterface);beginend;procedure Run;
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:39 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-2025 by Thomas Breitkreuz