LCL: TApplication: fixed handling EAbort

git-svn-id: trunk@14259 -
This commit is contained in:
mattias 2008-02-26 14:17:11 +00:00
parent 3de400c818
commit 33c25b7bc5

View File

@ -934,7 +934,7 @@ begin
HideAllFormsWithStayOnTop; HideAllFormsWithStayOnTop;
// handle the exception // handle the exception
if ExceptObject is Exception then begin if ExceptObject is Exception then begin
if not (ExceptObject is EAbort) then if not (ExceptObject is EAbort) then begin
i:=FApplicationHandlers[ahtUserInput].Count; i:=FApplicationHandlers[ahtUserInput].Count;
if Assigned(OnException) or (i>0) then begin if Assigned(OnException) or (i>0) then begin
if Assigned(OnException) then if Assigned(OnException) then
@ -943,6 +943,7 @@ begin
TExceptionEvent(FApplicationHandlers[ahtException][i])(Self,Exception(ExceptObject)); TExceptionEvent(FApplicationHandlers[ahtException][i])(Self,Exception(ExceptObject));
end else end else
ShowException(Exception(ExceptObject)); ShowException(Exception(ExceptObject));
end;
end else end else
SysUtils.ShowException(ExceptObject, ExceptAddr); SysUtils.ShowException(ExceptObject, ExceptAddr);
Exclude(FFlags,AppHandlingException); Exclude(FFlags,AppHandlingException);