Subject | Re: [IBO] TIB_Connection does not use Local Conection ? |
---|---|
Author | Ramil |
Post date | 2007-12-11T05:23:34Z |
IBO 4.8.7 by default uses fbclient.dll library.
IBO 4.3a uses gds32.dll
It is the basic difference for your subject.
See Firebird_2\doc\README.incompatibilities.txt quotation:
* The new client library is not compatible with the older server (and vice
versa) in regard to the local protocol, as the transport internals has been
reimplemented (XNET instead of IPServer). If you need to use the local
protocol, please ensure your server and client binaries are of the same
version.
Check up conformity of client library and a database server.
Or, if you want to have identical behaviour of old and new version
of your application, specify gds32.dll in IBO sources instead
of fbclient.dll.
(find IBO_FBCLIENT_DLL constant in IB_Constants.INC or IB_Session.pas)
Best regards,
Ramil
IBO 4.3a uses gds32.dll
It is the basic difference for your subject.
See Firebird_2\doc\README.incompatibilities.txt quotation:
* The new client library is not compatible with the older server (and vice
versa) in regard to the local protocol, as the transport internals has been
reimplemented (XNET instead of IPServer). If you need to use the local
protocol, please ensure your server and client binaries are of the same
version.
Check up conformity of client library and a database server.
Or, if you want to have identical behaviour of old and new version
of your application, specify gds32.dll in IBO sources instead
of fbclient.dll.
(find IBO_FBCLIENT_DLL constant in IB_Constants.INC or IB_Session.pas)
Best regards,
Ramil
>
>
>
>
>
> Hi everybody.
>
> I migrate from IBO 4.3a to 4.8.7, and now my TIB_Connection does open
> if Local Conection is selected.
>
> I try this example :
> with IB_Connection1 do
> begin
> Connected:=false;
> Databasename:='c:\dados\jade\admin1.fdb';
> Protocol:=cpLocal;
> Server:='localhost'; // or empty
> Username:='SYSDBA';
> Password:='masterkey';
> try
> Open;
> except
> on e:exception do
> begin
> Application.MessageBox(Pchar(e.message), 'Error :',0);
> end;
> end;
> end;
>
> In previous version of IBO (4.3a) this code runs OK, but fail on IBO
> 4.8.7 returning the message error "unavaliable database". To
> workaround I set protocol to TCP_IP and runs fine.
>
> cpLocal was dropped or code missing ?