[fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?
el.es.cr at gmail.com
Fri Sep 8 14:06:16 CEST 2017
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 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 -
have the tasks that should not be interrupted, like bulk serial communication,
handled by a thread, and whatever the thread wants to display, use a buffer (like TThreadList) to
communicate to the main thread.
More information about the fpc-pascal