Browse Source

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

git-svn-id: trunk@5273 -
yury 19 years ago
parent
commit
df6fec5301
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/inc/except.inc

+ 4 - 1
rtl/inc/except.inc

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