[Lazarus] Are multiple critical sections allowed in form or data module?

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Oct 10 10:34:15 CEST 2011

On Mon, 10 Oct 2011, Michael Schnell wrote:

> On 10/09/2011 03:14 PM, Michael Van Canneyt wrote:
>> It's not so on Unix. X-Windows is definitely not thread-safe.
> Of course "in general" this is correct.
> But I understand that it should be possible that an application (using 
> additional threads) creates more than one "Main Frame" by attaching to a new 
> "instance" of the Widget set and thus - regarding the GUI - acts as multiple 
> applications, (But quite obviously the LCL does not support this, as it uses 
> some global variables to manage the "Application".)

I don't think that the LCL should support this.
It adds another layer of complexity for no good reason at all, with
questionable end-results.

See the link I posted for a good explanation of why this is a bad idea.


More information about the Lazarus mailing list