Owner problem created by Delphi object

xiaoxiao2021-03-06  17

1. Set the control owner to Application, which takes up a larger resource. 2. If it is a data module dynamically creates a component, you also need to add a Forms unit reference. Generally, it is best: For TFORM class, use Application as a parameter, for components on the form, use Self as parameters. For temporary components, use nil as parameters, and finally use free release objects.

转载请注明原文地址:https://www.9cbs.com/read-41276.html

New Post(0)