If I fix the stack overflow (call inherited SetSize, not inherited SetSize64) then later on I get
An unhandled exception occurred at $0042B982:
EStreamError: CACHE: Unable to read expected bytes (Open for write only ?). Expected: 30, effective read: 0
$0042B982 ReadPageBeforeWrite, line 543 of bufstream.pp
It does not matter if the file exists, or not at program start.
It seems to crash at the second call to Save() though.
If I comment that out, the program runs fine.
[edit]
Investigating this further: the program crashes (already in the first call to Save) if the file exists and the filesize is > 0 bytes.
Bart