Memory Leak - Zeoslib 6.5.1 20061011, Lazarus and MySQL 4.1

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
jacques.bernardes
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 11.10.2006, 21:19

Memory Leak - Zeoslib 6.5.1 20061011, Lazarus and MySQL 4.1

Post by jacques.bernardes »

Hi

I using Lazarus, MySQL 4.1 and ZeosLib 6.5.1 20061011. If I run the following code, every thing is OK,

Query.SQL.Clear;
Query.SQL.Add('SELECT name FROM clients LIMIT 3;');
while 1=1 do begin
Query.Open;
Query.Close;
end;

but if I add another column in the query,

Query.SQL.Clear;
Query.SQL.Add('SELECT name, LastBuy FROM clients LIMIT 3;');
while 1=1 do begin
Query.Open;
Query.Close;
end;

the system gets out of memory after a while. In my opinion, the closing method is not cleaning the column information if the query has more than 1 column. Unfortunently, I could not follow the bug cos I don know Zeos internals enogth.

Thanks in advance

Jacques


Sorry for my poor english
Post Reply