[fpc-pascal] TSQLDBLibraryLoader committed for SQLDB

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Wed Aug 22 13:51:58 CEST 2012



On Wed, 22 Aug 2012, Ludo Brands wrote:

>> (In the IDE: drop, set connector type from picklist, maybe
>> change library name, set to enabled).
>>
> I'm having some problems using this in the IDE. The picklist is empty.
> Probably something missing in
>
> procedure TSQLDBConnectorTypePropertyEditor.GetValues(
>  Proc: TGetStrProc);
>
> Var
>  L : TStringList;
>  I : Integer;
> begin
>  L:=TStringList.Create;
>  try
>    for I:=0 to L.Count-1 do
>       Proc(L[i]);
>  finally
>    L.Free;
>  end;
> end;
>
> because that is a no-op.
>
> Also, if I understand the mode of operation correctly, the
> TSQLDBLibraryLoader, when enabled, loads the library before the
> TxxxConnection tries to load it. But how can you be sure TSQLDBLibraryLoader
> is streamed before a TxxxConnection that has connected set to true

First:
When committing, I has a problem with conflicts. It seems that while
resolving these conflicts, a line got lost. I re-added that line.

Second, this problem is known, but there is no good solution to this problem,
except not leaving connected to true. (which is bad practice anyway IMHO).

There are more problems: the library name is not cross-platform, so the
project will no longer be cross-platform. Which is a far more serious
problem, IMHO. (and one which would exist even if I had followed your
suggestion of implementing the property in TSQLConnection).

Michael.




More information about the fpc-pascal mailing list