Interbase connection UniDAC x64
Posted: Mon 08 Jan 2018 15:12
Hello,
I`m having issues setting up a connection from a 64 bit application to an interbase server.
It kind of looks like the 64 bit UniDAC is attempting to load 32 bit dll's which in turn results in fatal errors.
To ensure that we our own code is not at fault, we opened up the UniDacDemo project provided by the installation and we encountered the same issue. On connection attempt it crashes with the following error:
Project UniDacDemo.exe raised exception class Exception with message 'Cannot load client library'.
After searching the unidac connection source code, it looks like the IBCCallUni.pas does not take 64 bit into account when loading the dll's:
{$IFDEF MSWINDOWS}
GDSDLLName = 'gds32.dll';
FBClientDLLName = 'fbclient.dll';
IBXMLDLLName = 'ibxml.dll';
{$ELSE}
I could be wrong here, however when making a small test project and attempting to connect to the same database using FireDAC (TFDConnection) , the connection is successfully established. Doing the same with the TUniConnection component, results in the same fatal error.
Any suggestions how to solve/work around this would be appreciated.
I`m having issues setting up a connection from a 64 bit application to an interbase server.
It kind of looks like the 64 bit UniDAC is attempting to load 32 bit dll's which in turn results in fatal errors.
To ensure that we our own code is not at fault, we opened up the UniDacDemo project provided by the installation and we encountered the same issue. On connection attempt it crashes with the following error:
Project UniDacDemo.exe raised exception class Exception with message 'Cannot load client library'.
After searching the unidac connection source code, it looks like the IBCCallUni.pas does not take 64 bit into account when loading the dll's:
{$IFDEF MSWINDOWS}
GDSDLLName = 'gds32.dll';
FBClientDLLName = 'fbclient.dll';
IBXMLDLLName = 'ibxml.dll';
{$ELSE}
I could be wrong here, however when making a small test project and attempting to connect to the same database using FireDAC (TFDConnection) , the connection is successfully established. Doing the same with the TUniConnection component, results in the same fatal error.
Any suggestions how to solve/work around this would be appreciated.