[Lazarus] Cannot connect Firebird server
reinierolislagers at gmail.com
Wed Jul 25 12:45:59 CEST 2012
On 25-7-2012 12:31, Sławek wrote:
> I'd like to start a new life (after Delphi) with Lazarus IDE but got
> into trouble with basic Firebird connection procedure :(
> Error message: Cannot load default Firebird clients (fbembed.dll or
> gds32.dll) ??
> System Win7,64bit,home
> Firebird 2.5/32bit installed on local machine from zip package; database
> located on local machine
> Lazarus 32bit, 0.9.30.4
> Any hints ?
Dzien dobry Slawek,
Yes. Where is your fbembed.dll/fbclient.dll and its associated files?
(Note: you don't just need one DLL, you also need icudt30.dll etc).
Does this occur in design time or run time? I'm guessing the latter...
For design-time support, you need them in your project directory (where
your source is), I think you can also put it in your lazarus directory
so you can use it for all projects.
You also need to put them in the directory where the executable is
If you want to use Firebird embedded (instead of the regular server):
older versions of FPC required to explictly set a variable (or as
workaround, renambe fbembed.dll to fbclient.dll). Don't know if that is
still the case with the version distributed with Laz 0.9.30.4
See http://wiki.lazarus.freepascal.org/firebird for an explanation on
that. If anything is unclear, let me know and I will update the wiki
page - or you can do it yourself ;)
Finally, I see you are using Laz 32 bit. Fine. There are known problems
with x64 FPC/Lazarus with embedded Firebird due to faulty FPC exception
handling (e.g. bug 21581) but you don't need to worry about that.
More information about the Lazarus