Destructors, like constructors, take an extra hidden parameter. The first call to a destructor passes True for the Extra Parameter. This tells Delphi to call FreeInstance to free the object. If the Destructor calls an inherited destructor, delphi passes false as the hidden parameter to prevent the inherited destructor from trying to free the same object.
關于Destructors
最新推荐文章于 2024-06-15 12:35:28 发布