A Warning on Dynamically Instantiating Delphi components
Friday March 20, 2009
Delphi at Run-Time ::
If you want to dynamically instantiate a Delphi object (control, component) and explicitly free it sometime later, always pass nil as the owner. Failure to do so can introduce unnecessary risk, as well as performance and code maintenance problems.
If you want to dynamically instantiate a Delphi object (control, component) and explicitly free it sometime later, always pass nil as the owner. Failure to do so can introduce unnecessary risk, as well as performance and code maintenance problems.
Read the full article to learn about Dynamic Component Creation Gotcha
Related:


Comments
No comments yet. Leave a Comment