如果想在某个窗体关闭时就释放可以这样;
formshow的话
在onclose写 action := acfree;
在destroy写 form1(本窗体的名字) := nil;
showmodal:
form1.showmodal;
form1.free;
form1 := nil;
formshow的话
在onclose写 action := acfree;
在destroy写 form1(本窗体的名字) := nil;
showmodal:
form1.showmodal;
form1.free;
form1 := nil;
for I := MDIChildCount-1 downto 0 do
MDIChildren[I].Close;