Re: [fpc-pascal] TProcess read buffer size

2021-07-15 Thread Ryan Joseph via fpc-pascal


> On Jul 15, 2021, at 3:07 PM, Marco van de Voort via fpc-pascal 
>  wrote:
> 
> Not of TProcess as far as I know, it probably depends on the OS pipe 
> implementation and maybe the granularity that the processes that you run 
> outputs data.  (buffers its I/O iow calls write()  in 512 byte increments )

In this case the command is a PHP script that reads a file in 64k chunks and 
writes the text to stdout (in PHP fread returns 64k chunks as expected). 
TProcess looks like a pretty thin wrapper around pipes and  common unix system 
calls so I don't know where the 512 limit could come from.

How could I test this further? I think something is wrong but I don't know 
where to look. I'm on macOS btw.

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] TProcess read buffer size

2021-07-15 Thread Marco van de Voort via fpc-pascal


Op 2021-07-15 om 20:26 schreef Ryan Joseph via fpc-pascal:

I have some code the basically does:

while bytesRead > 0 do
bytesRead := process.Output.Read(buffer^, kBufferSize);

but bytesRead is only ever 512 per call to Read.

Is this a system imposed limit or something that's part of TProcess? Setting 
kBufferSize to anything larger than 512 has no affect.
Not of TProcess as far as I know, it probably depends on the OS pipe 
implementation and maybe the granularity that the processes that you run 
outputs data.  (buffers its I/O iow calls write()  in 512 byte increments )

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] TProcess read buffer size

2021-07-15 Thread Ryan Joseph via fpc-pascal
I have some code the basically does:

while bytesRead > 0 do
bytesRead := process.Output.Read(buffer^, kBufferSize);

but bytesRead is only ever 512 per call to Read.

Is this a system imposed limit or something that's part of TProcess? Setting 
kBufferSize to anything larger than 512 has no affect.

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] RxDBGrid and RxColumn

2021-07-15 Thread Michael Van Canneyt via fpc-pascal



On Wed, 14 Jul 2021, Hassan Camacho Cadre via fpc-pascal wrote:


Hello

I am using lazarus v2.012 and rxnew 3.3.5.231.

In a form I have placed a RxDBGrid component with a lookup column, I want
to know if it is possible search on the values of this column as the user
types, just like the TRxDBLookupCombo component does.

Now when I run the project, position the cursor on the lookup column field
and write some value nothing happens, and I would like to locate the values
that contain the characters that the user types.


I don't think the maintainer of the Rx components is on this list.

Maybe the article here can help you get started:
https://www.freepascal.org/~michael/articles/#grids

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] RxDBGrid and RxColumn

2021-07-15 Thread Hassan Camacho Cadre via fpc-pascal
Hello

I am using lazarus v2.012 and rxnew 3.3.5.231.

In a form I have placed a RxDBGrid component with a lookup column, I want
to know if it is possible search on the values of this column as the user
types, just like the TRxDBLookupCombo component does.

Now when I run the project, position the cursor on the lookup column field
and write some value nothing happens, and I would like to locate the values
that contain the characters that the user types.

Thanks in advance.

-- 
Atentamente Msc. Hassan Camacho.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal