memory leak - firebird

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

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

memory leak - firebird

Post by barko »

hi

I have tested some things with this code:

Code: Select all

var i:integer;
begin
  for i:=1 to 1500 do
  begin
    ZQuery.Close;
    ZQuery.SQL.text:='select * from anytable;';
    ZQuery.Open;
  end;
end;
And with KDE memory info software I got results; memory is filled up but is not released (on ZQuery.Close) until I close program... is there any way to confirm this?

This is on linux, lazarus (latest from svn),fpc (latest from svn), firebird database 1.5 and zeosdbo from svn (latest)...

my english sux...i know... ;)
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

I made same test with SQLdb (included in lazarus) and RAM (memory) is not filled up (it's released after query.close)... so, in zeosdbo is memory leak (may be somewhere in interbase/firebird units?)...
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi Barko,

I've found 1 past reference to memory leaks in Firebird units and that one is Here.
It should be fixed in testing branch, but the original poster never confirmed it worked. Unfortunately I never used firebird and have no experience with memory leaks. If you can find them, please go on. If not please confirm you are using a version where the change from the link above has been done, so the other know that's NOT the problem.

Mark
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

I use latest version from SVN (testing branch), so I think this fix is included... and memory leak is still present...
barko
Senior Boarder
Senior Boarder
Posts: 51
Joined: 07.09.2005, 13:13

Post by barko »

Hi!

I want to thank jacques.bernardes for his work on memory leak of zeosdbo. With svn rev. 169 (testing branch) is this memory leak gone!

:D
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

I want to thank jacques.bernardes for his work on memory leak of zeosdbo.
Am I missing something? :D

@mdaems: I'm the original poster for the topic you cited, and yes, it works :)
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

@gto:
Maybe jou just missed the fact that my post is quite 'old'.

At that moment jaques did not yet find the recently fixed bug. (See bug reports section). It's that fix barko is refering to. You first fix was not bad, but jacques has found another leak.

Mark
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

Ohh right. Didn't see the date :mrgreen:
sorry!
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
Post Reply