Page 1 of 1
UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Mon 09 Jul 2012 07:41
by pmoegenb
The following code works as a 32-bit application, but not as a 64-bit program. Is there something wrong?
Code: Select all
UniConnection1.SpecificOptions.Values['ClientLibrary'] :=
ExtractFilePath(Application.ExeName)+'sqlite3.dll';
That is, the path used at design time is not replaced only in a 32-bit application, but in a 64-bit application.
Re: UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Mon 09 Jul 2012 10:56
by AlexP
hello,
We cannot reproduce the problem in both 32-bit and 64-bit applications: the sqlite3.dll library is loaded from the specified path with no errors, if there is a correct library version in this path. Please make sure that there is a 64-bit version of the library in the folder with the application on the 64-bit platform.
Re: UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Tue 10 Jul 2012 05:10
by pmoegenb
Well, I've found the problem. If I remove the path to the sqlite3.dll library at design time, the new path is implemented on the 64-bit platform run-time correctly.
Only, I must manually set the path to the design-time every time.
However, also the path specified at design time to the sqlite3.dll library will be replaced on the 32-bit platform.
Can it tell someone me?
Re: UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Tue 10 Jul 2012 08:46
by AlexP
hello,
This error can occur only in the case if you have set a connection in design-time. In this case, when running the application, there will be an attempt to connect to the DB with the help of the library specified in run-time (the path that is already set for searching the DLL will be used). I.e. you should either disconnect in run-time before building the 64-bit version of the application, or set the UniConnection.Options.KeepDesignConnected to False in order that automatic connection to the DB doesn't occur at running the application
Re: UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Tue 10 Jul 2012 09:15
by pmoegenb
Hello,
I have of course taken at run time no database connection is, but only will be connected at startup.
The option KeepDesignConnedted: nothing causes of run-time = false.
Re: UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Fri 13 Jul 2012 08:31
by AlexP
hello,
Please specify the exact versions of your UniDAC and XE2
Re: UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Fri 13 Jul 2012 10:21
by pmoegenb
hello,
UniDac is version 4.2.7 and Delphi XE2 is version 16.0.4504.48759.
Re: UniConnection1.SpecificOptions.Values['ClientLibrary']
Posted: Tue 17 Jul 2012 11:50
by AlexP
Hello,
We checked this behaviour on the similar versions of IDE and UniDAC and found no problems that were described. Please send a small project demonstrating the problem to alexp*devart*com