[fpc-pascal] DLL calling Firebird 2: crashes at the end
Michael Van Canneyt
michael at freepascal.org
Sun Sep 28 18:10:56 CEST 2014
On Sun, 28 Sep 2014, Reinier Olislagers wrote:
> On 28/09/2014 11:32, Michael Van Canneyt wrote:
>> On Sun, 28 Sep 2014, Reinier Olislagers wrote:
>>> After hopefully getting parameter passing fixed (I hope, thanks Mark),
>>> I'm still facing this problem:
>>> dll using Firebird crashes on Windows and Linux
>>> Using a dummy db unit that does not connect to Firebird: everything ok.
>> Perhaps a stupid question, but: why are you not simply using sqldb ?
> Why do you think I don't?
Because you are speaking about cmem, low-level pchars and whatnot.
> My library does use sqldb. I just want to provide postcode
> lookup/address validation services to other programmers in a .dll/.so.
>> I do a lot of work with firebird embedded, and I've never even come
>> close to the problems you're experiencing ?
> It's not limited to Firebird embedded; I ran tests on Windows & Linux
> with Firebird client/server; same thing
>From your story, I doubt your problems are Firebird related.
Firebird (or any other DB client lib) just uses the buffers you provide.
More information about the fpc-pascal