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

Reinier Olislagers reinierolislagers at gmail.com
Sun Sep 28 14:04:53 CEST 2014

On 28/09/2014 13:54, Mark Morgan Lloyd wrote:
> Reinier Olislagers wrote:
> But when your code modifies strings in the context of the database
> library they're preallocated C-type strings, i.e. can't be extended or
> shrunk so don't make unexpected reference to any memory manager.
Yes, I agree. However, this problem should also appear in regular FPC
applications + Firebird library, right? Why don't I see any problems there?
As mentioned, I'm using regular sqldb to talk to Firebird, nothing special.

> Interesting. So if I understand you correctly it's only when you've got
> two levels of dynamically-loaded library, i.e. one DLL is responsible
> for loading another.
Yes. When/if I add Postgresql support we may now more ;)

> Now would probably be a good time to try Postgres as an alternative.
Ah, a mind reader ;)

More information about the fpc-pascal mailing list