Page 1 of 1

Memory Leak - Zeoslib 6.5.1 20061011, Lazarus and MySQL 4.1

Posted: 11.10.2006, 21:41
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