在子窗口的Formclose中加入 Action:=caFree

解决方案 »

  1.   

    在子窗口的Formclose中加入
    子窗体名.release;
    如子窗体叫ChildForm1,则加入ChildForm1.release;
      

  2.   

    action :=cafree 加在子窗口的Close事件中
      

  3.   

    同意楼上的做法,但是下次你不能简单的用FormChild1.Show来显示他了,你要先创建一个,因为老的已经不存在了:
    FormChild1:=TFormChild1.Create(Self)
    FormChild1.Show;
      

  4.   

    最好再处理子窗口的Destroy事件
     如子窗体叫ChildForm1,则加入ChildForm := nil;
      

  5.   

    action :=cafree 加在子窗口的Close事件中
    同意这个