The TIniFile class uses the Windows API which imposes a limit of 64KB on INI files. If you need to store more than 64KB of data, you may want to use TMemIniFile instead. TMemIniFile does not have a limit of 64KB.
Important:
Remember to call the UpdateFile() method when you need the data to be written to
disk: it does not do that automatically.