Cannot load fbclient.dll

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
HelgeLange
Posts: 17
Joined: Wed 13 Jun 2007 16:40
Location: Caracas

Cannot load fbclient.dll

Post by HelgeLange » Tue 21 Jun 2016 16:04

Hi DevArt,

I have a very strange problem : after a reinstall of firebird I get this fbclient.dll not found error, although I do have a working fbclient.dll in Windows\System32 directory.
If I copy that dll from there next to the exe, it works fine

a process monitor tells me, that the program finds the dll in system32, but basically ignores it and I don't know, why.

Image

(screenshot from the process monitor)

Any ideas ?
Helge

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: Cannot load fbclient.dll

Post by FredS » Wed 22 Jun 2016 19:07

Just a guess; did you check your SpecificOptions->Clientlibrary value?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Cannot load fbclient.dll

Post by ViktorV » Thu 23 Jun 2016 13:36

This error occurs, when bitness of the client library doesn't match bitness of the application. From your screenshot we can see that you have multiple client libraries on your computer at different locations.
If the TUniConnection.SpecificOptions.Values['Clientlibrary'] property is set to an empty string, UniDAC will search for a client library in the following order:
1. The catalog from which the application is loaded.
2. The //System32 system folder for 32-bit Windows system or the //SysWOW64 folder of 64-bit Windows system.
3. The //Windows folder.
4. Current workspace.
5. Folders listed in the РАТН environmental variable.
Please make sure, that bitness of the automatically loaded client library matches bitness of the application, or explicitly specify the path to client library in the TUniConnection.SpecificOptions.Values['Clientlibrary'] property.

Post Reply