Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-08 Thread wkitty42
On 09/08/2017 04:34 AM, Bo Berglund wrote: Next I unchecked the checkbox before doing the long transfer, and lo-and-behold(!) now there are no losses anymore! So the action of writing text to the listbox in the LogHex function was actually causing the application to lose incoming serial data!

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-08 Thread Bo Berglund
On Fri, 8 Sep 2017 13:06:16 +0100, el es wrote: > >I would decouple the log display from the serial handling routines - >by delegating the serial task to a thread, only display of log is handled in >the main thread (this is true whether your application is cli-only or gui -

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-08 Thread el es
On 08/09/17 09:34, Bo Berglund wrote: > 6) Then I rebuilt my application, but I have no idea if this actually > caused any buffer change. I know too little about the inner workings > of the Lazarus/FPC system... > > So it might still use the tiny 2K buffer??? > > I would decouple the log

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-08 Thread Bo Berglund
On Thu, 07 Sep 2017 13:48:27 +0200, Bo Berglund wrote: >I think I will have to create a bogus image file where I have a >regular pattern of bytes so I can see when the hickups occur in the >log. In a normal memory file most of the data is zero, so there are >long stretches