Can not load fbclient.dll under windows 64bit

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

Can not load fbclient.dll under windows 64bit

Post by inageib » Sat 10 May 2014 13:44

Hi,
In TIBCConnection component I pointed out the correct fbclient.dll path to connect to FireBird but I get this error in design time only (at run time it load normally)
Image

but if I used 32bit dll the component connect normally at design time! Any idea why is that ?

I use Windows 7 64bit and Delphi XE5. The project is compiled for 64bit too.

PavloP
Devart Team
Posts: 149
Joined: Fri 24 Jan 2014 12:33

Re: Can not load fbclient.dll under windows 64bit

Post by PavloP » Mon 12 May 2014 09:30

If you attempt to establish connection in the IDE, you should use the 32-bit fbclient.dll library, since the IDE is a 32-bit application.

inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

Re: Can not load fbclient.dll under windows 64bit

Post by inageib » Mon 12 May 2014 11:59

I see, many thanks.

PavloP
Devart Team
Posts: 149
Joined: Fri 24 Jan 2014 12:33

Re: Can not load fbclient.dll under windows 64bit

Post by PavloP » Mon 12 May 2014 12:11

Feel free to contact us if you have any further questions.

inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

Re: Can not load fbclient.dll under windows 64bit

Post by inageib » Sun 26 Apr 2015 02:07

After upgrading to new firebird version 2.5.4 I am facing the same problem, I was able to connect to my database at design time when I use this dll

C:\Program Files\Firebird\Firebird_2_5_4\WOW64\fbclient.dll

but when I run the application (without debugging) and try to use same dll I get error "cannot load fbclient.dll"

If I hard coded the path to:

C:\Program Files\Firebird\Firebird_2_5_4\bin\fbclient.dll

I was able to connect !! is it the dll under WOW64 is the 64bit version and I should be able to connect at run time to this dll ? why the contrary is happening ?

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

Re: Can not load fbclient.dll under windows 64bit

Post by ViktorV » Mon 27 Apr 2015 08:59

This, most likely, occurs, because you have installed the 64-bit Firebird 2.5.4. The bin folder of the 64-bit version of Firebird contains the 64-bit client library, and the WOW64 folder contains the 32-bit client library. Therefore, when you run your compiled 64-bit application using C:\Program Files\Firebird\Firebird_2_5_4\WOW64\fbclient.dll, you are getting a corresponding error.

inageib
Posts: 184
Joined: Wed 26 Aug 2009 14:11

Re: Can not load fbclient.dll under windows 64bit

Post by inageib » Mon 27 Apr 2015 18:08

I thought the WOW64 has the 64bit version !! thanks Viktor

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

Re: Can not load fbclient.dll under windows 64bit

Post by ViktorV » Tue 28 Apr 2015 05:57

Feel free to contact us if you have any further questions about IBDAC.

Post Reply