SQLConnection.Execute memory leak?


2007-09-21 03:53:57 AM
delphi214
Hello everyeone here...
I was debbuging some memory leaks in my server and I found that if you
write something like this:
procedure TFrmMain.Button2Click(Sender: TObject);
var
unDataSet: TSQLDataSet;
begin
unDataSet:= TSQLDataSet.Create(nil);
SysDataModule.SQLConnection.Execute('select * from "People"', nil,
unDataSet);
unDataSet.Free;
end;
(SysDataModule.SQLConnection is a TSQLConnection connected to a FB Database)
you get all these memory leaks:
TList x 7
TParams x 1, TCheckConstraint x 1, TFields x 2
TSQLDataLink x 1
TIndexDefs x 1
TFieldDefs x 1
TFieldList x 1, TFieldDefList x 1
TSQLDataSet x 1
My server does all its querys like the code above and that is the reason
why it has all the memory leaks I was trying to remove.
Every time I make an "Execute" the memory leaks are increased.
Is there anything I can do to avoid this memory leaks?... Is this a
known issue?... Am I doing something wrong?
I can reproduce this error with D2006 Turbo & D2007.
Any help is appreciated.