Prechádzať zdrojové kódy

* Fix exception propagation in TiniFile.Free (bug 19046)

git-svn-id: trunk@17230 -
michael 14 rokov pred
rodič
commit
bd302b760e
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      packages/fcl-base/src/inifiles.pp

+ 5 - 1
packages/fcl-base/src/inifiles.pp

@@ -657,7 +657,11 @@ end;
 destructor TIniFile.destroy;
 begin
   If FDirty and FCacheUpdates then
-    UpdateFile;
+    try
+      UpdateFile;
+    except
+      // Eat exception. Compatible to D7 behaviour, see comments to bug 19046
+    end;  
   inherited destroy;
 end;