Re: [fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Michael Van Canneyt
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 >

Re: [fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Vincent Snijders
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

Re: [fpc-pascal] Pipe buffering, accessing C-style stdin/stdout

2007-04-01 Thread Marco van de Voort
> 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