Search found 131 matches

by LHSoft
Sat 22 Aug 2020 08:20
Forum: SQLite Data Access Components
Topic: TLiteconnectio Options DefaultCollations
Replies: 3
Views: 19180

Re: TLiteconnectio Options DefaultCollations

the simplest things are always hard to think of.
Thank you for your reply
by LHSoft
Mon 17 Aug 2020 10:36
Forum: SQLite Data Access Components
Topic: TLiteconnectio Options DefaultCollations
Replies: 3
Views: 19180

TLiteconnectio Options DefaultCollations

Hello,
I want to get NoCase Search or NoCase Order without setting this in SQL Statement.
Can I do this by setting this to False? And where I have to set the collation "UniNoCase"?

best regards
Hans
by LHSoft
Mon 04 Nov 2019 15:03
Forum: SQLite Data Access Components
Topic: LiteSQL and Threads
Replies: 5
Views: 20280

Re: LiteSQL and Threads

Thanks, ist OK to know that the problem is fixed, so I wait for next release, hope comming soon
best regards
hans
by LHSoft
Thu 31 Oct 2019 02:11
Forum: SQLite Data Access Components
Topic: LiteSQL and Threads
Replies: 5
Views: 20280

Re: LiteSQL and Threads

MaximG wrote: Fri 09 Aug 2019 13:10 Thank you for the information. We will investigate the described issue and let you know the results shortly.
This was August.
I'm waiting for a reply since then
by LHSoft
Mon 07 Oct 2019 22:12
Forum: SQLite Data Access Components
Topic: LiteSQL and Threads
Replies: 5
Views: 20280

Re: LiteSQL and Threads

Hello,
any results why triggers do not work?
I still can not use actual Version because triggers do not work
by LHSoft
Sun 04 Aug 2019 17:17
Forum: SQLite Data Access Components
Topic: LiteSQL and Threads
Replies: 5
Views: 20280

Re: LiteSQL and Threads

deleted
by LHSoft
Sun 04 Aug 2019 13:55
Forum: SQLite Data Access Components
Topic: LiteSQL and Threads
Replies: 5
Views: 20280

Re: LiteSQL and Threads

the crash occurs in liteStatic, Line 1575:

Code: Select all

function localtime(OOQ00QCOQ0:pointer):ptm;
begin
Result:=malloc(SizeOf(stm));
OO00CQCOQ0(integer(OOQ00QCOQ0^),Result);
end;
So reason may not be Thread but a Trigger in the table.

This is the Table:

Code: Select all

CREATE TABLE [KaArtikelProtokoll](
  [Zeit] DATETIME, 
  [Barcode] NVARCHAR(13), 
  [PreisVKAlt] FLOAT(10, 2), 
  [PreisVKNeu] FLOAT(10, 2), 
  [Kennzeichen] NVARCHAR(1), 
  UNIQUE([Zeit], [Barcode]) ON CONFLICT IGNORE);

CREATE TRIGGER prot_insert AFTER INSERT
ON KaArtikelProtokoll
BEGIN
   UPDATE lastChange SET ChangeTime=datetime('now', 'localtime');
END;
The Trigger works til v3.04.10, now it causes crash.
Removing the trigger, there is no crash in 4.00.01.

Whats wrong?
by LHSoft
Sun 04 Aug 2019 12:03
Forum: SQLite Data Access Components
Topic: LiteSQL and Threads
Replies: 5
Views: 20280

LiteSQL and Threads

Hello,
in your History you write that Thread behavior is improved.
So I used Verson 3.04 til yesterday, now I have installed v4.01.

In a Thread I create a LiteSQL:

Code: Select all

ProtInsertSQL := TLiteSQL.Create(nil);
    ProtInsertSQL.Connection := DBM.SQLKasse;
    ProtInsertSQL.SQL.Clear;
    ProtInsertSQL.SQL.Add('INSERT INTO KaArtikelProtokoll');
    ProtInsertSQL.SQL.Add('(Zeit,Barcode,PreisVKAlt,PreisVKNeu,Kennzeichen)');
    ProtInsertSQL.SQL.Add('VALUES');
    ProtInsertSQL.SQL.Add('(:Zeit,:Barcode,:PreisVKAlt,:PreisVKNeu,:Kennzeichen)');
    ProtInsertSQL.Params[0].DataType := ftDateTime;
    ProtInsertSQL.Params[1].DataType := ftString;
    ProtInsertSQL.Params[2].DataType := ftCurrency;
    ProtInsertSQL.Params[3].DataType := ftCurrency;
    ProtInsertSQL.Params[4].DataType := ftString;
    ProtInsertSQL.Params.ValueCount := 1;
The Connection DBM.SQLKasse is not created in this thread but on a Datamodul.

I Fill the Values of the LiteSQL:

Code: Select all

i := ProtInsertSQL.Params.ValueCount - 1;
  ProtInsertSQL.Params[0][i].AsDateTime := Zeit;
  ProtInsertSQL.Params[1][i].AsString := Barcode;
  ProtInsertSQL.Params[2][i].AsCurrency := oldPreis;
  ProtInsertSQL.Params[3][i].AsCurrency := newPreis;
  ProtInsertSQL.Params[4][i].AsString := Kennzeichen;
  ProtInsertSQL.Params.ValueCount := ProtInsertSQL.Params.ValueCount + 1;
If running the line

Code: Select all

ProtInsertSQL.Execute(ProtInsertSQL.Params.ValueCount - 1);
in version 4.01 the program crashes, not so in version 3.04

Because you changed the bahavior in threads can you tell me what I have to Change now to get this work again.
Because the Connection is in exclusive mode (see below), I think I can not create a seperate Connection within the thread.
Also I thought about a synchronize for execute.

The Connection is set like this:

Code: Select all

procedure TDBM.SQLKasseBeforeConnect(Sender: TObject);
begin
  SQLKasse.LoginPrompt := False;
  SQLKasse.Database :=  'xy.db3';
  SQLKasse.EncryptionKey := '***';
  SQLKasse.Options.EncryptionAlgorithm := TLiteEncryptionAlgorithm.leBlowfish;
  SQLKasse.Options.Direct := True;
  SQLKasse.Options.UseUnicode := True;
end;

Code: Select all

procedure TDBM.SQLKasseAfterConnect(Sender: TObject);
begin
  SQLKasse.ExecSQL('PRAGMA page_size=4096');
  SQLKasse.ExecSQL('vacuum');
  SQLKasse.ExecSQL('PRAGMA journal_mode=WAL');
  SQLKasse.ExecSQL('PRAGMA locking_mode = EXCLUSIVE');
  SQLKasse.ExecSQL('BEGIN EXCLUSIVE');
  SQLKasse.ExecSQL('COMMIT');
  SQLKasse.ExecSQL('PRAGMA cell_size_check = TRUE');
by LHSoft
Sat 16 Feb 2019 11:22
Forum: SQLite Data Access Components
Topic: Direct mode crashes
Replies: 23
Views: 16583

Re: Direct mode crashes

Hello,
although the Problem is solved I do not feel support was running as good as it should.
I had to work one week, presenting Demos with as less as components possible.
We have presented the Region of error very soon and pregnant, and as you refused searching error because of jedi being and has to be present for error to occur in 10.2.3, I was rather angry and frustrated.
Remeber: ist not my Job searching errors in your components, but of Course I like to help you doing this. But Im expecting this to be a 2-way effort.
And then you wrote:
We know about the described issue existence ...
How to understand this? It sounds like you know for longer time and let me work?
So I hope, the next support case will run with a Little bit more commitment on your side.

best regards
Hans
by LHSoft
Wed 13 Feb 2019 11:53
Forum: SQLite Data Access Components
Topic: Direct mode crashes
Replies: 23
Views: 16583

Re: Direct mode crashes

Thank you for Links.
This works now.
by LHSoft
Tue 12 Feb 2019 17:01
Forum: SQLite Data Access Components
Topic: Direct mode crashes
Replies: 23
Views: 16583

Re: Direct mode crashes

no answer for Hours !
SDAC 8.2.9 does not work with your corrected build:

if installing your corrected Lite build last, LiteFrx Components can be compiled but SDACFrx Components can not be compiled and vice versa.

So, your corrected build is worthless without the corresponding SDAC. Please provide them soon.
by LHSoft
Tue 12 Feb 2019 12:05
Forum: SQLite Data Access Components
Topic: Direct mode crashes
Replies: 23
Views: 16583

Re: Direct mode crashes

Hello,
I have recieved your Email with the downloadlinks to Lite builds.
but, as Ive told you per Email, I Need the updated Links to SDAC too because commen files like MSClasses do not match so no program can be compiled or created.

Please send me the links to SDAC too as soon as possible.

Hans
by LHSoft
Fri 08 Feb 2019 00:14
Forum: SQLite Data Access Components
Topic: Direct mode crashes
Replies: 23
Views: 16583

Re: Direct mode crashes

Hello RobWeigel,

thank you very much for your Intervention. I have changed line 1325 like you suggested and the error is gone.
I do not understand the parts of litestatic and so I can not say thats the Point, but my Project starts without any error and the first database accesses are OK.
I have a stressmodus in my Software (cash register program, where the tax Office can proof at any time, so it MUST be without errors), which makes thousands of bills an hour. I let it run and have a look tomorrow morning, if Errors occured during night.

best regards
Hans
by LHSoft
Thu 07 Feb 2019 10:44
Forum: SQLite Data Access Components
Topic: Direct mode crashes
Replies: 23
Views: 16583

Re: Direct mode crashes

Hello,
I would ask you to install jedi for this test.
I did not get the error yet without the jediLED, but I did not get the error without TImageList too, and this is a VCL Component. If I remove any component which is on form on last testproject, the error is gone. I have told you this several times in forum

And the error only occurs with your actual Version, with all previous versions there is no error at all and had never been. So it should be your interest too to have a look whats on.

So your component is not a stand alone component. I investigated one week time in giving you a testproject as small as possible. And jedi is a component set most have installed and its free.

I hope you can help me here so I do not have to stay on old versions forever.

best regards
Hans

Edit:
all Errors are still raised in LiteStatic as told above
by LHSoft
Tue 05 Feb 2019 22:35
Forum: SQLite Data Access Components
Topic: Direct mode crashes
Replies: 23
Views: 16583

Re: Direct mode crashes

I can now say that the latest end with TMS Components, the error occurs, is AdvMenus. This has Advantage, that AdvMenus only use Delphi stuff wth the exception of AdvGDIP. This AdvGDIP uses only Delphi stuff and including AdvGDIP error is not raised.
So error is raised with having AdvMenus in uses list and TImageList and JvLED on Form.

I'm preparing a Demo you can compile and send it to you. I suppose, you have jedi and Fastreport installed.

Edit:
After testing, til now I can say, the error during start program I recognized not in 10.3 but only in 10.2.3 (and in XE5 sometimes).
If starting compiled with 10.2.3, only in about 1 of 20 attempts there is no error during starting.
In 10.3 the error occurs later on working (connecting and disconnecting) with database and tables, so as with other Delphis too if I handle the error on Start.