Hi GetMem,
@Jvan
Just replace
Yes he does create the
TFileStream and never uses it(but Free's it at the end), but the
Get() has 2 overloads, one with
Filename: String and another with
Filestream: TFileStream.
So syntactically and logically the code snippet is correct.
But HAAAA, the file is opened by the
TFileStream, Open/Written/Closed by the Get() and then Closed on the
FS.Free(). That could mess some of the things!!!
@JVan: Please correct that unfortunate sequence of events, by either removing all code pertaining to FS, or just replace stuff like @GetMem said.
If after that you still have issues, I'll share my code that is safe across FPC 3.0.4/3.2.0.
Cheers,
Gus