Unidac 9.01 SQLite Direct mode exist memory leaks

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jianlei
Posts: 3
Joined: Sun 24 Oct 2021 13:43

Unidac 9.01 SQLite Direct mode exist memory leaks

Post by jianlei » Sun 24 Oct 2021 13:58

Unidac 9.01 SQLite Direct mode exist memory leaks

direct=true
There is a memory leak when executing some statements,
direct=false
There is no memory leak for the following operations


There is a memory leak for the following operations:

UniConnection1.Database := ExtractFilePath(ParamStr(0)) + 'cardhouse.db';
try
UniConnection1.SpecificOptions.Values['Direct'] := 'True';
UniConnection1.Open;
UniQuery1.SQL.Text :=
'delete from iplist where round(julianday(datetime(CURRENT_TIMESTAMP,''localtime''))*24*60*60-julianday(datetime(dialtime))*24*60*60)>:sec';
UniQuery1.ParamByName('sec').AsInteger := 24 * 60 * 60;
UniQuery1.Execute;
finally
UniConnection1.Close;
end;



There is no memory leak for the following operations:

UniConnection1.Database := ExtractFilePath(ParamStr(0)) + 'cardhouse.db';
try
UniConnection1.SpecificOptions.Values['Direct'] := 'True';
UniConnection1.Open;
UniQuery1.SQL.Text := 'delete from iplist where id=1';
UniQuery1.Execute;
finally
UniConnection1.Close;
end;

jianlei
Posts: 3
Joined: Sun 24 Oct 2021 13:43

Re: Unidac 9.01 SQLite Direct mode exist memory leaks

Post by jianlei » Sun 24 Oct 2021 14:42

Memory leak when using 'julianday' in SQL statement

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Unidac 9.01 SQLite Direct mode exist memory leaks

Post by MaximG » Tue 26 Oct 2021 11:48

Please provide the DDL script for creating iplist table

jianlei
Posts: 3
Joined: Sun 24 Oct 2021 13:43

Re: Unidac 9.01 SQLite Direct mode exist memory leaks

Post by jianlei » Wed 27 Oct 2021 01:57

DDL:

Create iplist(
id integer PRIMARY KEY AUTOINCREMENT
,ip varchar(15)
,dialtime datetime
) ;

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Unidac 9.01 SQLite Direct mode exist memory leaks

Post by MaximG » Wed 27 Oct 2021 17:06

Thank you for the information. We have reproduced the issue and will investigate its origin. We will inform you about the
results shortly.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Unidac 9.01 SQLite Direct mode exist memory leaks

Post by MaximG » Tue 09 Nov 2021 12:14

We've reproduced the issue and fixed it. The fix will be included in the next build of our product. As a workaround, we can send you a night UniDAC build including the required changes.
For this provide us with your license number and IDE version you are interested in For your convenience, please use the e-support form https://www.devart.com/company/contactform.html

Post Reply