Re: [fpc-pascal] When Pascal code is too fast

2007-11-01 Thread ik
On 11/1/07, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > > Something like > > > > > > fcntl(fileno(stderr), F_GETFL) & O_NONBLOCK > > > > > > or the pascal equivalent should do. > > > > I'm getting -1 from fpWrite for a "long" pe

Re: [fpc-pascal] When Pascal code is too fast

2007-11-01 Thread Marco van de Voort
> On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > Something like > > > > fcntl(fileno(stderr), F_GETFL) & O_NONBLOCK > > > > or the pascal equivalent should do. > > I'm getting -1 from fpWrite for a "long" period of time, like 6-7 loop > returns before it can continue getting the

Re: [fpc-pascal] When Pascal code is too fast

2007-11-01 Thread Marc Santhoff
Am Donnerstag, den 01.11.2007, 09:15 +0200 schrieb ik: > On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > Am Donnerstag, den 01.11.2007, 00:45 +0200 schrieb ik: > > > Hi List, > > > > > > I have a weird problem. the "fpWrite" is too "slow" for FPC code. When > > > I have the same exact code

Re: [fpc-pascal] When Pascal code is too fast

2007-10-31 Thread Peter Vreman
> On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: >> Am Donnerstag, den 01.11.2007, 00:45 +0200 schrieb ik: >> > Hi List, >> > >> > I have a weird problem. the "fpWrite" is too "slow" for FPC code. When >> > I have the same exact code in C that writes a big amount of buffers of >> > the same s

Re: [fpc-pascal] When Pascal code is too fast

2007-10-31 Thread ik
On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > Am Donnerstag, den 01.11.2007, 00:45 +0200 schrieb ik: > > Hi List, > > > > I have a weird problem. the "fpWrite" is too "slow" for FPC code. When > > I have the same exact code in C that writes a big amount of buffers of > > the same size with

Re: [fpc-pascal] When Pascal code is too fast

2007-10-31 Thread Marc Santhoff
Am Donnerstag, den 01.11.2007, 00:45 +0200 schrieb ik: > Hi List, > > I have a weird problem. the "fpWrite" is too "slow" for FPC code. When > I have the same exact code in C that writes a big amount of buffers of > the same size with the same content. It seems that the fpWrite is way > too fast,

[fpc-pascal] When Pascal code is too fast

2007-10-31 Thread ik
Hi List, I have a weird problem. the "fpWrite" is too "slow" for FPC code. When I have the same exact code in C that writes a big amount of buffers of the same size with the same content. It seems that the fpWrite is way too fast, and the can't handle another call in the loop, and I need to slow d