请问
FreeOnRelease是什么意思?
Lop.free

Lop.hide;
Lop.FreeOnRelease;
有什么不同吗?

解决方案 »

  1.   

    Frees the interface reference for components that were created from COM classes. procedure FreeOnRelease;DescriptionFreeOnRelease 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.上面代码所执行后基本功能是一样的。
      

  2.   

    自己看看Free和Hide的源代码吧
      

  3.   

    FreeOnRelease 释放 COM 类组件的接口引用,内部使用,不应当直接调用
    Free 释放一个对象。
    Hide 是隐藏,不会释放资源