[Scummvm-devel] ReadStream::ioFailed/EOF - StdioStream::read
Willem Jan Palenstijn
wjp at usecode.org
Mon Feb 23 12:14:58 CET 2009
On Sun, Feb 22, 2009 at 09:17:16PM +0100, sunmax at libero.it wrote:
> It now (statistically) works, when I return _err in Ps2File::eof
> (see the file I sent).
Good to hear.
> I see now, going through few megabytes of printf outout, that
> the cases in which it fails have a "poisoned cache" some time
> before, so it's actually likely related to the 2nd issue I am
> investigating.
>
> Please, confirm that _err conditions look ok to you in my file,
> and I will return that in Ps2File::eof from now on.
It seems ok, although you may want to add an extra check when
reading > 2048 bytes that the return value r is what you expected.
Also, you need to reset the end-of-file flag to false when doing a
successful seek.
For consistency you may want to rename _err to _eof, by the way.
Good luck with the cache poisoning issue. I hope you figure it out.
-Willem Jan
More information about the Scummvm-devel
mailing list