Subject RE: [IBO] Memory leak in TIB_NodeList.GetNewNode
Author IBO Support List
Mason,

I use FastMM4 too and I have not seen this before. If you would, please
provide a sample app that reproduces this so that I can address it.
Otherwise, there isn't enough information here for me to go on.

Thanks,
Jason

-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of masonwheeler
Sent: Wednesday, December 26, 2012 5:42 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Memory leak in TIB_NodeList.GetNewNode

I'm getting the following report from FastMM's FullDebugMode after running
certain queries. The relevant thing here is the stack trace. It appears
that nodes are being allocated and never freed, even after the dataset is
freed.

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

This block was allocated by thread 0x2194, and the stack trace (return
addresses) at the time was:
410AB2 [FastMM4][FastMM4.DebugAllocMem]
404A86 [System.pas][System][System.AllocMem][3549]
672AB7
[IB_NodeList.pas][IB_NodeList][IB_NodeList.TIB_NodeList.GetNewNode][517]
675B42
[IB_NodeList.pas][IB_NodeList][IB_NodeList.TIB_NodeList.AfterFetchCursorRow]
[1863]
6CB76E
[IB_Components.pas][IB_Components][IB_Components.TIB_BDataset.AfterFetchCurs
orRow][33919]
6CB1FD
[IB_Components.pas][IB_Components][IB_Components.TIB_BDataset.SysAfterFetchC
ursorRow][33784]
6BA9A8
[IB_Components.pas][IB_Components][IB_Components.TIB_Dataset.SysFetchSingle]
[27362]
6BA4D1
[IB_Components.pas][IB_Components][IB_Components.TIB_Dataset.FetchSingle][27
192]
71AA33
[IBODataset.pas][IBODataset][IBODataset.TIBODataset.DoBeforeOpen][6649]
5863EC [DB.pas][DB][DB.TDataSet.SetActive][11311]
58624E [DB.pas][DB][DB.TDataSet.Open][11269]

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

The allocation number is: 239193

Current memory dump of 256 bytes starting at pointer address 7EAC63D0:
[snipped]



------------------------------------

___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Yahoo! Groups Links