我在程序中引用了的: Application.OnException := OnProgramException;procedure TFrmMain.OnProgramException(Sender: TObject; E: Exception); begin try if E is EAbort then begin if E is Exception then mainoutmessage(E.Message) else SysUtils.ShowException(E, nil); end; finally E := nil; end;end;但是程序还是会自动退出!
我在程序中引用了的:
Application.OnException := OnProgramException;procedure TFrmMain.OnProgramException(Sender: TObject; E: Exception);
begin
try
if E is EAbort then begin
if E is Exception then
mainoutmessage(E.Message)
else
SysUtils.ShowException(E, nil);
end;
finally
E := nil;
end;end;但是程序还是会自动退出!