Ibquery create and free memory
Posted: Wed 09 Dec 2009 14:49
Hello,
I do this code :
My problem is when i click on the button the RAM increase by 1M and when i call the free method the 1M are not freed (seen in the task manager)
Thanks for help
Regards
I do this code :
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var
query: TIBCQuery;
tranc: TIBCTransaction;
begin
query:= TIBCQuery.Create(self);
query.AutoCommit:= false;
tranc:= TIBCTransaction.Create(self);
tranc.DefaultConnection:= IBCConnection1;
query.Transaction:= tranc;
query.Connection:= IBCConnection1;
query.SQL.Text:= 'SELECT * FROM data_10min';
query.Open;
if tranc.Active = true then begin
tranc.Rollback;
end;
tranc.Free;
query.Free;
end;
Thanks for help
Regards