C++ Builder 參考手冊 ? System ? TObject ? Free
頭文件:#include <systobj.h>
命名空間:System
函數(shù)原型:
void __fastcall Free(void);
System::TObject::Free 是 System::TObject 的成員函數(shù),Delphi 程序可以通過調用 Free 方法來調用析構函數(shù)釋放分配的內存,空指針和未初始化的對象調用 Free 不會出錯。
C++ 程序需要用 delete 來銷毀對象,不要調用 Free 方法。
參考:
- System::TObject::NewInstance
- System::TObject::FreeInstance
- System::TObject::InitInstance
- System::TObject::InstanceSize
- System::TObject
- VCL 類繼承關系
C++ Builder 參考手冊 ? System ? TObject ? Free