In case if we will use TMemIniFile (with one time UpdateFile), instead of TIniFile (with multiply Create,Write and Free) as in example above, it will save all the data. However in that case we cannot be sure that's the settings will be saved in case of process termination, but it is another issue.