Re: [sqlite] custom collation problem with delphi

2007-03-05 Thread Ralf Junker
Hello jp, >Thanks Ralf, that seems to be more stable - the process is not crashing >anymore (ran it twice, no errors). Glad to read this! >Pardon my ignorance - I am still using cdecl, how can I use 'register'? >Doesn't sqlite expects cdecl? There is no ignorance involved: The sqlite3.dll of

Re: [sqlite] custom collation problem with delphi

2007-03-05 Thread jp
Thanks Ralf, that seems to be more stable - the process is not crashing anymore (ran it twice, no errors). Pardon my ignorance - I am still using cdecl, how can I use 'register'? Doesn't sqlite expects cdecl? jp --- Ralf Junker <[EMAIL PROTECTED]> wrote: > Hello jp, > > with DISQLite3, I use

Re: [sqlite] custom collation problem with delphi

2007-03-03 Thread Ralf Junker
Hello jp, with DISQLite3, I use the the following colation callback function without problems: function SQLite3_Compare_System_NoCase_Ansi( UserData: Pointer; l1: Integer; const s1: Pointer; l2: Integer; const s2: Pointer): Integer; begin Result := CompareStringA(LOCALE_SYSTEM_DEFAULT, N

[sqlite] custom collation problem with delphi

2007-03-02 Thread jp
I have a custom collation which worked well in 3.3.6, but now gives random errors on 3.3.13. Might just be coincidence but wanted to get feedback from the community. Under random circumstances, my Delphi function (compare function defined in sqlite3_create_collation) doesn't seem to receive the r