[fpc-pascal] Reproducible code: DLL calling Firebird crashes

Reinier Olislagers reinierolislagers at gmail.com
Mon Sep 29 17:09:09 CEST 2014

On 29/09/2014 16:51, José Mejuto wrote:
> El 29/09/2014 a las #4, Reinier Olislagers escribió:
> You must not initialize dbengine in the Initialization section and must
> not finalize it in that place (maybe only as last chance) because
> initialization order and finalization order is undefined by fpc and
> finalization of your code could happen after the whole DB structure has
> been finished, so the call to "DBLayer.Free" could try to free an object
> controlled by an engine which is not loaded yet.

Hi José,

Thanks, I'll just add a note to the shared library page of the wiki.

More information about the fpc-pascal mailing list