[fpc-devel]Flushing files automatically closed on exit
Marco van de Voort
marcov at stack.nl
Tue Jan 9 11:50:50 CET 2001
> I do not subscribe to the mailing lists.
>
> Version: 1.0.4 [2000/12/30] for i386
>
> System: Win98 on Celeron 466
>
> I just converted an old utility of mine to compile under Free Pascal.
> While testing, I found the end of my output file was missing. This seems
> to be caused by my relying on program exit to close the file, and Free
> Pascal not doing a flush when it automatically closed it.
FPC doesn't close it, the OS does, and then it doesn't flush buffers in
application space.
> I have compiled this program using several other compilers (Turbo (1.0?),
> UCSD, gpc...) and not had this problem, so I think it is at least an
> incompatibility with most compilers, if not a bug.
Afaik BP7 doesn't?
Anyway, this is bad programming IMHO (and I'm even not that critical).
We have no compability link with GPC and UCSD, only with BP7 (which afaik
doesn't), and Delphi. (which I don't know)
More information about the fpc-devel
mailing list