<p>Am 01.07.2015 16:21 schrieb "Jonas Maebe" <<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>>:<br>
><br>
><br>
> Adriaan van Os wrote on Wed, 01 Jul 2015:<br>
><br>
>> Jonas Maebe wrote:<br>
>><br>
>>> 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.<br>
>><br>
>><br>
>> Where is sharing-the-RTL-state an issue ?<br>
><br>
><br>
> 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 the program.</p>
<p>Not to mention RTTI (basically a superset of the "exception handling" case mentioned by Jonas).</p>
<p>Regards,<br>
Sven</p>