Browse Source

* removed runtime error on unhandled exception when SysUtils is used.

git-svn-id: trunk@5273 -
yury 19 năm trước cách đây
mục cha
commit
df6fec5301
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      rtl/inc/except.inc

+ 4 - 1
rtl/inc/except.inc

@@ -151,7 +151,10 @@ Procedure DoUnHandledException;
 begin
   If (ExceptProc<>Nil) and (ExceptObjectStack<>Nil) then
     with ExceptObjectStack^ do
-      TExceptProc(ExceptProc)(FObject,Addr,FrameCount,Frames);
+      begin
+        TExceptProc(ExceptProc)(FObject,Addr,FrameCount,Frames);
+        Halt(ExitCode);
+      end;
   if erroraddr = nil then
     RunError(217)
   else