[fpc-pascal] Re: Library callback : how do I do that?
Michael Schnell
mschnell at lumino.de
Fri Aug 9 09:28:47 CEST 2013
On 08/08/2013 02:41 PM, Lukasz Sokol wrote:
> Very well then, thanks :)
I suggest that - to exclude problems that might be imposed by some
external non-Lazarus and software not by yourself - you do a test
creating a combination of a Lazarus Application and a Lazarus-made dll
(and/or so) that features a TThread in the dll and uses
Application.QueuAsyncCall(Form1.DisplayCallFromDLL, NIL) to display some
running counter or similar stuff.
I understand for this you need to
- unify the Heaps of Application and dll
- do a call to the dll to provide the Application and the Form1 main
form instances of the calling program
If you succeed in doing a really reliable Test implementation of this, I
would be happy to see the source code.
This could be the basis of a "standard" implementation of something
similar to Delphi runtime packages.
Thanks,
-Michael
More information about the fpc-pascal
mailing list