On 02/12/2014 08:55 PM, Fred van Stappen wrote:

> you need synchronized heaps between the library and the
>main program.

Exactly, that is what i want...


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.

I once did that with Delphi (pre XE). It was easy.

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).

Of course as it needs to work in multiple OSes with different dynamic library paradigms, it's more complicated than in pure Windows Delphi.

-Michael
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to