[Lazarus] Are multiple critical sections allowed in form or data module?
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Oct 9 08:30:10 CEST 2011
On Sun, 9 Oct 2011 00:22:10 +0100
Frank Church <vfclists at gmail.com> wrote:
> Are multiple critical sections allowed in form or data module?
>
> e.g. I have different datasets each with its own connection and queries that
> threads need to lookup data from.
>
> Is it acceptable to have additional TCriticalSections on the form?
Yes.
I hope you are aware that all code accessing the LCL must run in the
main thread.
Mattias
More information about the Lazarus
mailing list