[wxInputStream] unlogic Eof() behavior

Christian Buhtz yspam at gmx.net
Thu Feb 1 11:22:19 PST 2007


Michael Wetherell schrieb:
> In the past some wx stream types did do eof differently, but the 
> inconsistency caused confusion. Now hopefully they all set eof after an 
> attempt to read _past_ the end.

But how can I check for an "real" eof without producing an error?

If I check for eof the wx-way I have to read one byte that does not 
exists. Only after that eof is true.





More information about the wx-dev mailing list