[bug_fixed] Memory Leak - ZeosLib 6.5.1, MySQL 4.1, Lazarus

In this forum all bug reports concerning the 6.x branch will be gahtered. You have the possibility to track the bug fix process.

Moderators: EgonHugeist, mdaems

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

[bug_fixed] Memory Leak - ZeosLib 6.5.1, MySQL 4.1, Lazarus

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 2000 times while loop. 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
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Thanks for the patch you sent me a time ago. I'll close this bugreport.

Mark
Post Reply