请问TForm1.create(self)与TForm1.create(application)的区别是什么?谢谢。

解决方案 »

  1.   

    self and application都是form.create()的参数owner.
    owner就是代表如果不手工释放资源那么由谁释放。
      

  2.   

    TForm1.create(self)与TForm1.create(application)
    没有区别!Tform1.owner应该就是application
      

  3.   

    self是一个全局变量
    Within the implementation of a method, the identifier Self references the object in which the method is called
    它指向 调用这个方法的对象的实例
    在你的问题中,哪两个参数是一个东西
    在别的地方,self就不是了