Delphi .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
About setting pointers to NIL after freeing memory
This article has not been rated yet. After reading, feel free to leave comments and rate it.
If an object has a published field of the same name as the owned object,
Delphi automatically sets that field to nil. In no other case will Delphi
automatically set any field or variable to nil when freeing the referenced
object.
The most common situation where this arises is for components you drop on a
form. Each component has a published field whose name is the component's name.
Comments:
|