[fpc-pascal] DLL calling Firebird: slow and crashes at the end

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Fri Sep 26 21:41:37 CEST 2014

Reinier Olislagers wrote:

> Let me explain:
> postcode.lpr: Lazarus GUI program with LCL etc that uses business layer
> (+db layer etc)
> dlldemo.lpr: console application that demonstrates use of
> dutchpostcode.lpr: dll source using business layer (which calls db units
> etc - business layer is the same unit as used in GUI program)
>> If using pchars: is the program doing all storage allocation for these
>> or is the DLL also allocating memory?
> The DLL is generating those pchars.

What frees them?

>> I thought Holland /was/ flat :-)  I was again thinking of the case where
>> both the main program and the DLL were your code. Using shortstrings
>> removes some of the dynamic allocation, hence potentially the need for a
>> single memory manager (cmem).
> ;)
> Ok. As said, haven't included cmem... will come back on this tomorrow.
> Thanks for the help so far!

Always a pleasure. Spent the evening herding sheep: 80m above sea level, 
which around here are called Downs :-)

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list