[Gambas-user] [Gambas Bug Tracker] Bug #1243: Read #Stream, iByte. sometimes raise an Error "End of File"

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Feb 15 18:49:28 CET 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1243&from=L21haW4-

Comment #1 by Benoît MINISINI:

According to the linux man pages, real files are always ready to read:

« A file descriptor is considered ready for reading if a read call will not block. This usually includes the read offset being at the end of the file or there is an error to report. »

So this is the standard linux behaviour.

Note that on my (relatively fast) computer, the program always fails at startup in the read handler. But on yours, you have to start the program several times. This is curious, as according to the man page, a real file should be always ready to read sooner or later.




More information about the User mailing list