[阅读: 497] 2006-10-12 07:04:10
完整在线帮助:
Frees an object reference and replaces the reference with nil (Delphi) or NULL (C++).
Unit
SysUtils
Syntax
[C++] void FreeAndNil (void * Obj);
Description
Use FreeAndNil to ensure that a variable is nil (Delphi) or NULL (C++) after you free the object it references. Pass any variable that represents an object as the Obj parameter.
Warning:
Obj must be an instance of a TObject descendant.