Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Memory leak version 14.2.6


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Feb 18, 2018 10:13 PM Last Post By: Alexandre Machado
Hafedh TRIMECHE

Posts: 107
Registered: 12/29/06
Memory leak version 14.2.6  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2018 4:18 AM
--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 84

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27AE1 [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][61]
B851C5 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1903]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]
74E58654 [BaseThreadInitThunk]

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

The allocation number is: 19269

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 84

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
4BF806 [System.Classes][System.Classes.TStringList.Create]
B27E9A [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][153]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19273

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 52

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B8519D [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1900]
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19267

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
40B384 [System][System.@UStrAsg]
4BD0C8 [System.Classes][System.Classes.TStrings.Create]
4BF813 [System.Classes][System.Classes.TStringList.Create]
B27AEE [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][62]
B851C5 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1903]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19270

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27E6E [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][149]
B27B13 [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][67]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19271

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
40B384 [System][System.@UStrAsg]
4BD0C8 [System.Classes][System.Classes.TStrings.Create]
4BF813 [System.Classes][System.Classes.TStringList.Create]
B27E9A [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][153]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19274

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 820

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
407631 [System][System.@ReallocMem]
40DD51 [System][System.DynArraySetLength]
40DE9E [System][System.@DynArraySetLength]
4BF713 [System.Classes][System.Classes.TStringList.SetCapacity]
B27EBE [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][158]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19275

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 100

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B18455 [IW.Common.Threads.pas][IW.Common.Threads][IW.Common.Threads.TIWSlimReaderWriter.Create][183]
408EDC [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B851B6 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1902]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19268

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 100

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B18455 [IW.Common.Threads.pas][IW.Common.Threads][IW.Common.Threads.TIWSlimReaderWriter.Create][183]
408EDC [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27E87 [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][151]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]

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

The allocation number is: 19272

--------------------------------2018/2/16 13:10:09--------------------------------
This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer):

13 - 20 bytes: TIWExpiredSessionList x 1, UnicodeString x 2
37 - 52 bytes: TIWSessions x 1
69 - 84 bytes: TIWStringList x 1, TIWSessionList x 1
85 - 100 bytes: TIWSlimReaderWriter x 2
741 - 820 bytes: Unknown x 1

Note: Memory leak detail is logged to a text file in the same folder as this application. To disable this memory leak check, undefine "EnableMemoryLeakReporting".
Chad Hower

Posts: 613
Registered: 3/2/07
Re: Memory leak version 14.2.6  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2018 7:13 AM   in response to: Hafedh TRIMECHE in response to: Hafedh TRIMECHE
Do you see the same report with Guess demo or only your application?

On 2/16/2018 8:18 AM, Hafedh TRIMECHE wrote:
--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 84

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27AE1 [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][61]
B851C5 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1903]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]
74E58654 [BaseThreadInitThunk]

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

The allocation number is: 19269

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 84

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
4BF806 [System.Classes][System.Classes.TStringList.Create]
B27E9A [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][153]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19273

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 52

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B8519D [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1900]
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19267

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
40B384 [System][System.@UStrAsg]
4BD0C8 [System.Classes][System.Classes.TStrings.Create]
4BF813 [System.Classes][System.Classes.TStringList.Create]
B27AEE [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][62]
B851C5 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1903]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19270

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27E6E [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][149]
B27B13 [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][67]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19271

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
40B384 [System][System.@UStrAsg]
4BD0C8 [System.Classes][System.Classes.TStrings.Create]
4BF813 [System.Classes][System.Classes.TStringList.Create]
B27E9A [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][153]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19274

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 820

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
407631 [System][System.@ReallocMem]
40DD51 [System][System.DynArraySetLength]
40DE9E [System][System.@DynArraySetLength]
4BF713 [System.Classes][System.Classes.TStringList.SetCapacity]
B27EBE [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][158]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19275

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 100

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B18455 [IW.Common.Threads.pas][IW.Common.Threads][IW.Common.Threads.TIWSlimReaderWriter.Create][183]
408EDC [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B851B6 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1902]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19268

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 100

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B18455 [IW.Common.Threads.pas][IW.Common.Threads][IW.Common.Threads.TIWSlimReaderWriter.Create][183]
408EDC [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27E87 [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][151]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]

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

The allocation number is: 19272

--------------------------------2018/2/16 13:10:09--------------------------------
This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer):

13 - 20 bytes: TIWExpiredSessionList x 1, UnicodeString x 2
37 - 52 bytes: TIWSessions x 1
69 - 84 bytes: TIWStringList x 1, TIWSessionList x 1
85 - 100 bytes: TIWSlimReaderWriter x 2
741 - 820 bytes: Unknown x 1

Note: Memory leak detail is logged to a text file in the same folder as this application. To disable this memory leak check, undefine "EnableMemoryLeakReporting".
Hafedh TRIMECHE

Posts: 107
Registered: 12/29/06
Re: Memory leak version 14.2.6  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 17, 2018 3:53 AM   in response to: Chad Hower in response to: Chad Hower
Please note that just using this unit generated a run-time error (217):
-- Delphi 10.2 Version 25.0.29039.2004 --
unit Main;
interface
 
uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,System.Classes,Vcl.Forms,
  Vcl.Graphics,Vcl.Controls,Vcl.Dialogs,Vcl.ExtCtrls,Vcl.StdCtrls,
  IWTypes,IWAppForm,IWApplication
  ;
 
 
type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
 
var
  Form1: TForm1;
 
implementation
 
{$R *.dfm}
 
procedure TForm1.Button1Click(Sender: TObject);
begin
  Application.Terminate;
end;
 
end.


Chad Hower wrote:
Do you see the same report with Guess demo or only your application?

On 2/16/2018 8:18 AM, Hafedh TRIMECHE wrote:
--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 84

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27AE1 [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][61]
B851C5 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1903]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]
74E58654 [BaseThreadInitThunk]

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

The allocation number is: 19269

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 84

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
4BF806 [System.Classes][System.Classes.TStringList.Create]
B27E9A [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][153]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19273

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 52

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B8519D [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1900]
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19267

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
40B384 [System][System.@UStrAsg]
4BD0C8 [System.Classes][System.Classes.TStrings.Create]
4BF813 [System.Classes][System.Classes.TStringList.Create]
B27AEE [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][62]
B851C5 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1903]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19270

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27E6E [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][149]
B27B13 [IWSessionList.pas][IWSessionList][IWSessionList.TIWSessionList.Create][67]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19271

--------------------------------2018/2/16 13:10:08--------------------------------
A memory block has been leaked. The size is: 20

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
40AEF7 [System][System.@NewUnicodeString]
40B384 [System][System.@UStrAsg]
4BD0C8 [System.Classes][System.Classes.TStrings.Create]
4BF813 [System.Classes][System.Classes.TStringList.Create]
B27E9A [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][153]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19274

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 820

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
407631 [System][System.@ReallocMem]
40DD51 [System][System.DynArraySetLength]
40DE9E [System][System.@DynArraySetLength]
4BF713 [System.Classes][System.Classes.TStringList.SetCapacity]
B27EBE [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][158]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]
D1EBE4 [WEBConfig.dpr][WEBConfig][WEBConfig.WEBConfig][10]

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

The allocation number is: 19275

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 100

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B18455 [IW.Common.Threads.pas][IW.Common.Threads][IW.Common.Threads.TIWSlimReaderWriter.Create][183]
408EDC [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B851B6 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1902]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]
412BDF [SysInit][SysInit.@InitExe]

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

The allocation number is: 19268

--------------------------------2018/2/16 13:10:09--------------------------------
A memory block has been leaked. The size is: 100

This block was allocated by thread 0xF54, and the stack trace (return addresses) at the time was:
4075C2 [System][System.@GetMem]
408ED3 [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B18455 [IW.Common.Threads.pas][IW.Common.Threads][IW.Common.Threads.TIWSlimReaderWriter.Create][183]
408EDC [System][System.TObject.NewInstance]
4096F2 [System][System.@ClassCreate]
B27E87 [IWSessionList.pas][IWSessionList][IWSessionList.TIWExpiredSessionList.Create][151]
B851D4 [IWApplication.pas][IWApplication][IWApplication.TIWSessions.Create][1904]
D1D748 [IWApplication.pas][IWApplication][IWApplication.IWApplication][2586]
40A950 [System][System.InitUnits]
40A9BC [System][System.@StartExe]

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

The allocation number is: 19272

--------------------------------2018/2/16 13:10:09--------------------------------
This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer):

13 - 20 bytes: TIWExpiredSessionList x 1, UnicodeString x 2
37 - 52 bytes: TIWSessions x 1
69 - 84 bytes: TIWStringList x 1, TIWSessionList x 1
85 - 100 bytes: TIWSlimReaderWriter x 2
741 - 820 bytes: Unknown x 1

Note: Memory leak detail is logged to a text file in the same folder as this application. To disable this memory leak check, undefine "EnableMemoryLeakReporting".
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: Memory leak version 14.2.6  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 18, 2018 10:13 PM   in response to: Hafedh TRIMECHE in response to: Hafedh TRIMECHE
There are no memory leaks in 14.2.6.

This code:


procedure TForm1.Button1Click(Sender: TObject);
begin
  Application.Terminate;
end;
 


This is not a IntraWeb form (but a VCL form) and Application is a global instance of VCL.Forms.pas unit which is not supposed to be used in any way from within an IntraWeb application, specially to terminate it.

I'm not sure what you are trying to achieve with this application....
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02