5 Sep 2000 07:17:00 GMT, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> pisze:
> There is a chance that it was not garbage collected yet but it's dead,
> and reading a whole 10 megs of file when the user losed its interest
> after first bytes is unnecessary. So this is not a sufficient rule.
But if implementations were always able to force a good enough GC
themselves, it would work. hClose on a semi-closed handle would do:
garbage collect;
if the current end of the contents is still alive,
suck the whole rest of the file;
really close the file.
Combined with locking on opening, it should make lazy reading safe.
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK