Strange Error in SpecificOptions.Values

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Strange Error in SpecificOptions.Values

Post by FredS » Fri 05 Dec 2014 20:20

I am using Firebird embedded and in OnBeforeConnect of the UniConnection I ran this:

SpecificOptions.Values['InterBase.Role'] := 'RDB$ADMIN';
SpecificOptions.Values['InterBase.ClientLibrary'] := AppPath + 'db\fb\gds32.dll';

which gave me unavailable db errors using UniDac v6 until I changed it to this:

SpecificOptions.Text := 'InterBase.Role=RDB$ADMIN' + CRLF +
'InterBase.ClientLibrary='+ AppPath + 'db\fb\gds32.dll';

Strange, I checked Subversion and this WAS the only change needed..

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Strange Error in SpecificOptions.Values

Post by AlexP » Mon 08 Dec 2014 11:50

Hello,

Please provide the error message text or a screenshot.

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

Re: Strange Error in SpecificOptions.Values

Post by FredS » Mon 08 Dec 2014 21:51

Hi AlexP,
I can't reproduce now, but I know the error.
It's when one tries to open an embedded fdb without the embedded DLL.
Essentially the server DLL in the System dir was used.

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

Re: Strange Error in SpecificOptions.Values

Post by ViktorV » Wed 10 Dec 2014 08:53

Indeed, such an error occurs when you use an incorrect client library version.

Post Reply