<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/12/2014 08:55 PM, Fred van
Stappen wrote:<br>
</div>
<blockquote cite="mid:DUB110-W1067682FBCF4E3FB9B7460AB8920@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style><br>
<div dir="ltr">
<div>> you need synchronized heaps between the library and
the <br>
>main program. <br>
<br>
Exactly, that is what i want...<br>
<br>
</div>
</div>
</blockquote>
<br>
Unifying the heap is known to be necessary to successfully pass
string parameters between the main program and the library.
Supposedly also Objects "free" and open arrays will not work as
expected. <br>
<br>
I once did that with Delphi (pre XE). It was easy. <br>
<br>
But I have no idea how this is done with the fpc heap manager
(though I seem to remember having read about it some time ago). <br>
<br>
Of course as it needs to work in multiple OSes with different
dynamic library paradigms, it's more complicated than in pure
Windows Delphi. <br>
<br>
-Michael<br>
</body>
</html>