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

Marco van de Voort marcov at stack.nl
Wed Oct 1 09:38:13 CEST 2014


In our previous episode, Sven Barth said:
> > So the obvious question might be if the unit initialization really  belongs
> > into the library initialization like that.
> 
> The only other alternative would be to add the RTL initialization code 
> to each exported function. I don't consider this a viable alternative.

Simpler, for manual managed DLLs, you need to manually call an initialization and
finalization. Period.
 



More information about the fpc-pascal mailing list