[fpc-pascal] TProcess read buffer size

Ryan Joseph genericptr at gmail.com
Thu Jul 15 20:26:42 CEST 2021


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



More information about the fpc-pascal mailing list