Page 1 of 1

Memory Leak on ZUpdateSQL

Posted: 16.11.2008, 23:59
by lams
Hi,

I am using ZeosLib 6.6.4, D6 and Firebird 2.1 with latest http://sourceforge.net/projects/fastmm/ ... MM4%204.90

And the FastMM4 fulldebugmode report hugh memory leak on ZeosLib components. I have write a very simple test app using Firebird 2.1 default Employee sample database as test case and get the same memory leak result.

I have attach the test project and my FastMM FastMM4Options.inc which include the debug mode settings.

Here is some snip from the FastMM debug log:

Code: Select all

A memory block has been leaked. The size is: 20

This block was allocated by thread 0xD78, and the stack trace (return addresses) at the time was:
402B8B [system.pas][System][@GetMem][2450]
4EF168 [ZDbcInterbase6ResultSet.pas][ZDbcInterbase6ResultSet][TZInterbase6ResultSet.Create][193]
4F10FE [ZDbcInterbase6Statement.pas][ZDbcInterbase6Statement][TZInterbase6PreparedStatement.ExecuteQueryPrepared][575]
53B5F6 [ZSqlUpdate.pas][ZSqlUpdate][TZUpdateSQL.PostUpdates][829]
4A6776 [ZDbcCachedResultSet.pas][ZDbcCachedResultSet][TZAbstractCachedResultSet.PostRowUpdates][434]
530D19 [ZAbstractDataset.pas][ZAbstractDataset][TZAbstractDataset.InternalUpdate][378]
531018 [ZAbstractDataset.pas][ZAbstractDataset][TZAbstractDataset.InternalPost][465]
48A0F8 [DB.pas][DB][TDataSet.CheckOperation][10371]
489DAC [DB.pas][DB][TDataSet.Post][10228]
484FD4 [DB.pas][DB][TDataLink.MoveBy][7399]
550347 [DBGrids.pas][DBGrids][NextRow][3047]

The block is currently used for an object of class: Unknown

The allocation number is: 8007


Posted: 17.11.2008, 00:01
by lams
Hi,

I am using ZeosLib 6.6.4, D6 and Firebird 2.1 with latest FastMM4 4.90

And the FastMM4 fulldebugmode report hugh memory leak on ZeosLib components. I have write a very simple test app using Firebird 2.1 default Employee sample database as test case and get the same memory leak result.

I have attach the test project and my FastMM FastMM4Options.inc which include the debug mode settings.

Here is some snip from the FastMM debug log:

Code: Select all

A memory block has been leaked. The size is: 20

This block was allocated by thread 0xD78, and the stack trace (return addresses) at the time was:
402B8B [system.pas][System][@GetMem][2450]
4EF168 [ZDbcInterbase6ResultSet.pas][ZDbcInterbase6ResultSet][TZInterbase6ResultSet.Create][193]
4F10FE [ZDbcInterbase6Statement.pas][ZDbcInterbase6Statement][TZInterbase6PreparedStatement.ExecuteQueryPrepared][575]
53B5F6 [ZSqlUpdate.pas][ZSqlUpdate][TZUpdateSQL.PostUpdates][829]
4A6776 [ZDbcCachedResultSet.pas][ZDbcCachedResultSet][TZAbstractCachedResultSet.PostRowUpdates][434]
530D19 [ZAbstractDataset.pas][ZAbstractDataset][TZAbstractDataset.InternalUpdate][378]
531018 [ZAbstractDataset.pas][ZAbstractDataset][TZAbstractDataset.InternalPost][465]
48A0F8 [DB.pas][DB][TDataSet.CheckOperation][10371]
489DAC [DB.pas][DB][TDataSet.Post][10228]
484FD4 [DB.pas][DB][TDataLink.MoveBy][7399]
550347 [DBGrids.pas][DBGrids][NextRow][3047]

The block is currently used for an object of class: Unknown

The allocation number is: 8007


Posted: 17.11.2008, 08:38
by mdaems
lams,

If you don't post his to the bugtracker it will get lost!!

Mark

Posted: 17.11.2008, 22:08
by lams
Thanks for your remind. I have post it on bugtracker as issue 0000155.