Sorry for not replying "in thread", I get the list as digest so I can't
"reply" properly.
> > The problem with FPC is that I
> > can't find any straightforward way to either get PFile-style
> > stdin/stdout from the Text-style input/output (surely there is a
> > connection?)
> Yes. PFile _IS_
On Sun, 1 Apr 2007, Ingemar Ragnemalm wrote:
>
> Dear list,
>
> I have been struggling for quite a while (that is weeks) to get proper pipe
> communication with a sublaunched program, using TProcess or straight
> pipe/fork/exec calls. This is under Mac OSX, but the problem should be similar
>
Marco van de Voort schreef:
After a lot of googling and experimenting, I think I have managed to
make it work, but only in C code, and I want it to run in Pascal. The
key to make it work in C was to call setvbuf at the right time, to set
the buffering mode for stdin/stdout. The problem with FPC
> After a lot of googling and experimenting, I think I have managed to
> make it work, but only in C code, and I want it to run in Pascal. The
> key to make it work in C was to call setvbuf at the right time, to set
> the buffering mode for stdin/stdout. The problem with FPC is that I
> can't f
Dear list,
I have been struggling for quite a while (that is weeks) to get proper
pipe communication with a sublaunched program, using TProcess or
straight pipe/fork/exec calls. This is under Mac OSX, but the problem
should be similar under any Unix.
The problem is the buffering. Using stdi