W
wqh-2
Unregistered / Unconfirmed
GUEST, unregistred user!
s是一全局 Tstrings 变量。
procedure TForm1.FormClose(Sender: TObject
var Action: TCloseAction);
begin
s.Free;
showmessage('now close');
end;
procedure TForm1.exit1Click(Sender: TObject);
begin
close;
end;
该程序关闭时,发生异常,但若将
s.Free;
showmessage('now close');
换为
showmessage('now close');
s.Free;
则程序正常,为何与顺序有关?