楼主 发表于： 2000-02-27 17:12:00
#1 得分：20 回复于： 2000-02-27 18:00:00
Use Release to destroy the form and free its associated memory.
Release does not destroy the form until all event handlers of the form and event handlers of components on the form have finished executing. Any event handlers of the form should use Release instead of Free. Failing to do so could lead to an access violation.
Use Free to destroy an object. Free automatically calls the destructor if the object reference is not nil.Free is successful even if the object is nil.
FreeOnRelease is called when an interface implemented by the component is released. FreeOnRelease is used internally and calls the corresponding interface method. It should not be necessary to call FreeOnRelease directly.