Free与Hide+FreeOnRelease有不同吗?

qqh1980 2003-10-18 07:46:31
请问
FreeOnRelease是什么意思?
Lop.free

Lop.hide;
Lop.FreeOnRelease;
有什么不同吗?
...全文
252 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hiflower 2003-10-18
  • 打赏
  • 举报
回复
FreeOnRelease 释放 COM 类组件的接口引用,内部使用,不应当直接调用
Free 释放一个对象。
Hide 是隐藏,不会释放资源
FrameSniper 2003-10-18
  • 打赏
  • 举报
回复
自己看看Free和Hide的源代码吧
jy_1201 2003-10-18
  • 打赏
  • 举报
回复
Frees the interface reference for components that were created from COM classes.

procedure FreeOnRelease;

Description

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.

上面代码所执行后基本功能是一样的。

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧