Form1.release 和 Form1.Free(10分)

  • 主题发起人 主题发起人 Hahaman
  • 开始时间 开始时间
? 问题在那啊?
 
sorry 它们的区别?
 
release只有等所有form的events都执行完毕之后才会destroy
free则不等待
 
Destroys the form and frees its associated memory.
procedure Release;
这是delphi的Help
Description
Use Release to destroy the form and free its associated memory.
Release is much like the Free method except that Releasedo
es 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 todo
so could lead to an access violation.
 
接受答案了.
 
后退
顶部