[Gambas-user] [Gambas Bug Tracker] Bug #969: Suddenly getting error "Stream is closed" on Eof() and Lof() after closing Process stream
bugtracker at ...3416...
bugtracker at ...3416...
Thu Jul 28 13:18:29 CEST 2016
http://gambaswiki.org/bugtracker/edit?object=BUG.969&from=L21haW4-
Tobias BOEGE reported a new bug.
Summary
-------
Suddenly getting error "Stream is closed" on Eof() and Lof() after closing Process stream
Type : Bug
Priority : High
Gambas version : 3.8.90 (TRUNK)
Product : Unknown
Description
-----------
Hi Benoit,
we talked about closing a Process stream (which is always closing its input stream) here [1].
Everything was working fine after that clarification and I haven't updated Gambas since then,
until now. (I'm basically opening a Gimp process, pipe a script into it and close the Process
stream to signal the end of the script. Afterwards I use Eof() and Lof() to get its output.)
After the update, however, I get the error "Stream is closed" when using Eof() and Lof() on
the Process, after closing its input stream. That did not happen before. Instead it would
return the correct values for the child's output stream. A sample project using "cat" is
attached.
Regards,
Tobi
[1] https://sourceforge.net/p/gambas/mailman/message/35152362/
More information about the User
mailing list