[fpc-pascal] Duplicate RTLs
pascaldragon at googlemail.com
Wed Jul 1 17:08:35 CEST 2015
Am 01.07.2015 16:21 schrieb "Jonas Maebe" <jonas.maebe at elis.ugent.be>:
> Adriaan van Os wrote on Wed, 01 Jul 2015:
>> Jonas Maebe wrote:
>>> This is currently quite hard with FPC, as every library compiled with
FPC contains its own RTL and hence does not share the RTL state with the
applications that use it. To solve that, you need Delphi-style dynamic
packages support, which Sven is working on.
>> Where is sharing-the-RTL-state an issue ?
> The main ones will be allocating/freeing memory unless you use
cmem/sharemem (including passing around reference counted types), exception
catching (your program's exception class won't be related to the library's
exception class), anything involving global variables (either
implementation or interface) in units that exist both in the library and in
Not to mention RTTI (basically a superset of the "exception handling" case
mentioned by Jonas).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal