![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
![]() |
Fri, Feb 21 2014 8:59 AM | Permanent Link |
Matthew Jones | Where must I use "inherited" in constructors and destructors?
This has always been a bit of a pain to remember in Delphi, but I wonder what is important in WebBuilder. Is it important for a generic class to call the inherited Create and inherited Destroy? If so, why? Is it important for a TComponent or TControl descendant to call the inherited Create / Destroy? If so, why? I would like to understand fully so that I don't go leaking. /Matthew Jones/ |
Mon, Feb 24 2014 4:22 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Matthew,
<< Where must I use "inherited" in constructors and destructors? >> Anywhere you want. Just be mindful of what is/isn't created/destroyed yet. << Is it important for a generic class to call the inherited Create and inherited Destroy? If so, why? >> No, but it's a good habit to keep. << Is it important for a TComponent or TControl descendant to call the inherited Create / Destroy? If so, why? >> Yes, those classes need to call Create/Destroy to manage ownership, etc. Tim Young Elevate Software www.elevatesoft.com |
Tue, Feb 25 2014 5:42 AM | Permanent Link |
Matthew Jones | Thanks.
/Matthew Jones/ |
This web page was last updated on Wednesday, August 14, 2024 at 03:12 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |