Nein, nicht an der try..finally Verschachtelung.
Übrigens:
Delphi-Quellcode:
procedure TMyForm.LoadSettings;
//...
try
MyInput.Text := Ini.ReadString ('Bla', 'MyInput', '');
MyCheckbox.Checked := Ini.ReadString ('Bla', 'MyCheckbox', TRUE); // <---<< ? String und Bool ?
//...
end;
Delphi-Quellcode:
procedure TMyForm.LoadSettings;
var
Ini: TIniFile;
begin
Ini := TIniFile.Create ('Pfad\Dateiname');
try
MyInput.Text := Ini.ReadString ('Bla', 'MyInput', '');
MyCheckbox.Checked := Ini.ReadBoolean ('Bla', 'MyCheckbox', TRUE);
...
finally
FreeAndNil (Ini);
end;
end;