aecspades
Joined: 04 Dec 2006 Posts: 14
|
Posted: Mon Jan 29, 2024 5:43 pm Post subject: Memory leaks on application exit |
|
|
Using Delphi2007 with FastMM4 4.993, there are several memory leaks reported, almost all showing DesignEditors.RegisterPropertyEditor like this:
Code: | A memory block has been leaked. The size is: 20
This block was allocated by thread 0xD48, and the stack trace (return addresses) at the time was:
403282
405F31
405EC4
D193BD [DesignEditors.pas][DesignEditors][DesignEditors.RegisterPropertyEditor][2399]
D0BB2F [DesignIntf.pas][DesignIntf][DesignIntf.RegisterPropertyEditor][1555]
145EBEE [TeeChartReg][TeeChartReg][TeeChartReg.Register]
159B7C5 [frDashDsnr.pas][frDashDsnr][frDashDsnr.frDashDsnr][3256]
405AA3
405B0B
40898B [SysInit.pas][SysInit][SysInit.@InitExe][663]
159C675 [rtstudio.dpr][rtstudio][rtstudio.rtstudio][117]
The block is currently used for an object of class: AnsiString
The allocation number is: 451003 |
DesignEditors.RegisterComponentEditor like this:
Code: | A memory block has been leaked. The size is: 12
This block was allocated by thread 0xD48, and the stack trace (return addresses) at the time was:
403282
D1A0AA [DesignEditors.pas][DesignEditors][DesignEditors.RegisterComponentEditor][2768]
D0B9C7 [DesignIntf.pas][DesignIntf][DesignIntf.RegisterComponentEditor][1488]
145EB0D [TeeChartReg][TeeChartReg][TeeChartReg.Register]
D0B89A [DesignIntf.pas][DesignIntf][DesignIntf.RegisterPropertiesInCategory][1439]
159B7C0 [frDashDsnr.pas][frDashDsnr][frDashDsnr.frDashDsnr][3252]
159B7C5 [frDashDsnr.pas][frDashDsnr][frDashDsnr.frDashDsnr][3256]
405AA3
405B0B
40898B [SysInit.pas][SysInit][SysInit.@InitExe][663]
159C675 [rtstudio.dpr][rtstudio][rtstudio.rtstudio][117]
The block is currently used for an object of class: Unknown
The allocation number is: 447011 |
DesignEditors.RegisterPropertyEditor like this:
Code: | A memory block has been leaked. The size is: 36
This block was allocated by thread 0xD48, and the stack trace (return addresses) at the time was:
403282
407226
D19390 [DesignEditors.pas][DesignEditors][DesignEditors.RegisterPropertyEditor][2393]
D0BB2F [DesignIntf.pas][DesignIntf][DesignIntf.RegisterPropertyEditor][1555]
145EBEE [TeeChartReg][TeeChartReg][TeeChartReg.Register]
159B7C5 [frDashDsnr.pas][frDashDsnr][frDashDsnr.frDashDsnr][3256]
405AA3
405B0B
40898B [SysInit.pas][SysInit][SysInit.@InitExe][663]
159C675 [rtstudio.dpr][rtstudio][rtstudio.rtstudio][117]
7535FCC9 [BaseThreadInitThunk]
The block is currently used for an object of class: Unknown
The allocation number is: 451002 |
I have a MemoryManager_EventLog.txt that I can send, but there is no way to attach it here apparently...
Is there some Destroy/Free/Deallocate/Unregister method that I need to call to clean all of this up?
Please let me know if you need any more details, thanks |
|