When I run the this code many times, the memory free decrements 70kb/min.
In the test project I have a timer to execute this code every 10ms.
If the "OQ2.Close" method is removed, the memory free estabilish!
See the example code:
OQ.SQL.Add('SELECT * FROM TABLE WHERE ID=' +IntToStr(ID)+' ORDER BY ID,PRI,ORDEM');
OQ.Execute;
OQ.Close;
In the test project I have a timer to execute this code every 10ms.
If the "OQ2.Close" method is removed, the memory free estabilish!
See the example code:
OQ.SQL.Add('SELECT * FROM TABLE WHERE ID=' +IntToStr(ID)+' ORDER BY ID,PRI,ORDEM');
OQ.Execute;
OQ.Close;