we use IBDAC 3.50.0.21 with Firebird-Emb 2.5.
We don't install the Firebird-Emb-Files on the maschine. We just put all of them (the hole content of the zip-file from FireBird-Emb-ZIP) into an Subfolder DBLibs of the application.
Now we set the property ClientLibrary of the TIBCConnection to this Path
(+'DBLibs\fbembed.dll').
When we call "connect" this doesn't work. Only if we put some code arround connect like this:
Code: Select all
function TForm1.OwnConnect: Boolean;
var
origDir: string;
begin
origDir := GetCurrentDir;
try
SetCurrentDir(ExtractFilePath(ExpandFileName(FIBCConnection.ClientLibrary)));
FIBCConnection.Connect;
// do some other stuff
finally
SetCurrentDir(origDir);
end;
end;
Thank you for help.
Chris