[fpc-pascal]Using Tprocess to write to child process standard input.
vslist at zonnet.nl
Wed Mar 10 23:23:23 CET 2004
On Wed, 10 Mar 2004 09:07:45 +0100 (W. Europe Standard Time)
Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
> On Tue, 9 Mar 2004, Vincent Snijders wrote:
> > Michael,
> > Thanks for your comments.
> > On Tue, 9 Mar 2004 15:32:01 +0100 (W. Europe Standard Time)
> > Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
> > >
> > >
> > To prevent this I add the source in a zip.
> > If I do the following in dos-box, a log.txt is created:
> > type q.txt | logger.exe
> > So I conclude logger is working as expected.
> That is what I also thought, until I found out that
> - The log file didn't contain the contents of q.txt
> - I was actually executing the cygwin logger program.
> > but
> > running testprocess.exe
> > doesn't return, and only the header of the log file is written, so the
> > logger hasn't received any info from testprocess.exe.
> It works fine here if I change commandline to '.\logger.exe'
I have been trying to find out, why it works on your computer and not on mine.
It turns out, that it fails with fpc 1.0.11 (5-3-2004) and works with fpc 1.9.3
(10-3-2004). Windows and Linux versions behave the same way (failure with fpc
1.0.11 and success with fpc 1.9.3).
In both versions I am using process.pp version 1.19.
Do you have a clue, what might cause these different behaviour?
Compiling with 1.9.3 is not a option at the moment, because I need to be able to
use a debugger and debug info is still not working right.
More information about the fpc-pascal