Memory leak

Trying to track down all sorts of problems right now but can anyone suggest why this might be occurring?

FastMM has detected an error during a free block scan operation. FastMM detected that a block has been modified after being freed.

Modified byte offsets (and lengths): 16(8)

The previous block size was: 52

This block was previously allocated by thread 0x1440, and the stack trace (return addresses) at the time was:
40766E [System.pas][System][@GetMem$qqri][4758]
409F67 [System.pas][System][TObject.NewInstance][16922]
40A786 [System.pas][System][@ClassCreate$qqrpvzc][18255]
B8DE6F [System.Generics.Collections.pas][Data.DB][Generics.Collections.%TList__1$p16Data.Db.TDataSet%.Create][4130]
CDBD3A [uDADataTable][Generics.Collections.%TList__1$p25Udadatatable.TDADataTable%.Create]
CD5B27 [uDADataTable.pas][uDADataTable][TDADataTable.GetDetailDataTables][4221]
CDBD3A [uDADataTable][Generics.Collections.%TList__1$p25Udadatatable.TDADataTable%.Create]
CD855B [uDADataTable.pas][uDADataTable][TDADataTable.GetDetailTablesforApplyUpdate][5218]
40768A [System.pas][System][@FreeMem$qqrpv][4806]
409F85 [System.pas][System][TObject.FreeInstance][16931]
CDBCB1 [System.Generics.Collections.pas][uDADataTable][Generics.Collections.%TList__1$p25Udadatatable.TDADataTable%.InternalCompare][4285]

The block was previously used for an object of class: TList<Data.DB.TDataSet>

The allocation number was: 9236532

The block was previously freed by thread 0x1440, and the stack trace (return addresses) at the time was:
40768A [System.pas][System][@FreeMem$qqrpv][4806]
409F85 [System.pas][System][TObject.FreeInstance][16931]
40A7D1 [System.pas][System][@ClassDestroy$qqrxp14System.TObject][18298]
B8E078 [Data.DB][Generics.Collections.%TList__1$p16Data.Db.TDataSet%.Destroy]
40A0FF [System.pas][System][TObject.Free][16994]
CD5BEB [uDADataTable.pas][uDADataTable][TDADataTable.GetDetailDataTables][4238]
CDBD3A [uDADataTable][Generics.Collections.%TList__1$p25Udadatatable.TDADataTable%.Create]
CD855B [uDADataTable.pas][uDADataTable][TDADataTable.GetDetailTablesforApplyUpdate][5218]
40768A [System.pas][System][@FreeMem$qqrpv][4806]
409F85 [System.pas][System][TObject.FreeInstance][16931]
CDBCB1 [System.Generics.Collections.pas][uDADataTable][Generics.Collections.%TList__1$p25Udadatatable.TDADataTable%.InternalCompare][4285]

Hi,

How I can reproduce this issue?
Can you create a simple testcase that reproduces this issue, pls?
you can drop email with it to support@ for keeping privacy.

Sorry there’s no chance of that right now. I’m having loads of problems right now with crashes and memory leaks and am struggling to reliably reproduce anything.

I’ll see if I can reproduce it once I’ve got things a bit more under control. It seems to be happening on shutdown when the memory manager is uninstalled so not entirely sure if it’s actually a problem or just a facet of the memory manager.

Hi,

if you are using FastMM4, try to use FastMM5

I’ll give that a try thanks