[Lazarus] Multiple LCL instances

Michael Schnell mschnell at lumino.de
Fri Jun 11 14:21:39 CEST 2010


On 06/11/2010 01:48 PM, Marco van de Voort wrote:
>
> That only fixes the memorymanager issue, not the fact that there are two
> copies of RTL/FCL/LCL state.  (and VMTs for all duplicate classes etc).
>   
OK.

Do you suggest that the LCL that seemingly automatically is created and
initialized in the DLL/.so in fact does work concurrently with the one
created by the application itself ?

Say, you create an application that creates a TForm and a TTimer showing
a counter on the form and then initializes a DLL/.so that also creates
it's own TForm and it's own TTimer showing a counter on the DLL/.so's
TForm, but otherwise the process and the DLL don't communicate at all.
Do you think this application could be configured in a way that both
TForms are shown side-by-side and can be individually moved using the
mouse ?

This in fact could be a good starting point.
> It can be a workaround, but then you have to be very careful. 
If now the said "memory manager workaround" would allow for the DLL to
work with the instances of the (non-GUI) user defined classes that are
used to manage the internal "business-logic" application data, and
synchronization issues can be taken care of by TCriticalSection (or
whatever), this could be the way to go,

> And that is
> not "easy".
>   
That is not required. If you suggest that it could be made working. We
might start some testing on that behalf.

Thanks a lot !
-Michael




More information about the Lazarus mailing list