Einzelnen Beitrag anzeigen

Chris55

Registriert seit: 5. Okt 2020
6 Beiträge
 
#6

AW: Spring4D TSingleton<> Memory Leak bei Klasse mit class constructor

  Alt 5. Okt 2020, 09:22
Bei mir mit Delphi 10.1 mit Spring Release 1.2.2.
Auch im Delphi 10.4.1 mit der gleichen Springversion.

Der FastMM4 Stacktrace ist dieser hier:

Code:
--------------------------------2020/10/5 9:43:39--------------------------------
A memory block has been leaked. The size is: 12

This block was allocated by thread 0x5520, and the stack trace (return addresses) at the time was:
5005A246 [System.pas][System][System.@GetMem][4840]
5005FB37 [System.pas][System][System.TObject.NewInstance][17837]
5006030E [System.pas][System][System.@ClassCreate][19227]
5005FC1C [System.pas][System][System.TObject.Create][17896]
5023DAB4 [System.SyncObjs.pas][System.SyncObjs][System.SyncObjs.TCriticalSection.Create][1092]
4068E4 [Tests][Designpatterns.TSingleton.%GetInstance$p15Tests.TMyClass2%$qqrv$p15Tests.TMyClass2]
406835 [Tests.pas][Tests][TTest.Test][31]
4084F3 
773F6359 [BaseThreadInitThunk]
77537B74 [RtlGetAppContainerNamedObjectPath]
77537B44 [RtlGetAppContainerNamedObjectPath]

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

The allocation number is: 1107

Current memory dump of 256 bytes starting at pointer address 7FDC9A18:
F0 67 40 00 00 00 00 00 CC A6 FF 88 2C D9 40 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 54 04 00 00 46 A2 05 50 F1 2F 09 50 18 B5 E5 50 FF 84 40 00 59 63 3F 77
74 7B 53 77 44 7B 53 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 55 00 00 20 55 00 00
62 A2 05 50 DD 2F 09 50 F4 1B 06 50 04 85 40 00 59 63 3F 77 74 7B 53 77 44 7B 53 77 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 0C 00 00 00 00 00 00 00 77 7C 34 2D 38 D6 40 00 2C D9 40 00
2C D9 40 00 88 83 CB D2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ð  g @  . . . . . Ì  ¦  ÿ  &#710; , Ù  @  . . . . . . . . . . . . . . . . .
. . . . . . . . T . . . F ¢  . P ñ  /  . P . µ  å  P ÿ  &#8222; @  . Y c ?  w
t {  S w D {  S w . . . . . . . . . . . . . . . .    U . .    U . .
b ¢  . P Ý  /  . P ô  . . P . &#8230; @  . Y c ?  w t {  S w D {  S w . . . .
. . . . . . . . . . . . . . . . . . . . w |  4  -  8  Ö  @  . , Ù  @  .
, Ù  @  . &#710; &#402; Ë  Ò  . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

--------------------------------2020/10/5 9:43:39--------------------------------
This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer):

5 - 12 bytes: TMyClass2 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".

Geändert von Chris55 ( 5. Okt 2020 um 09:27 Uhr)
  Mit Zitat antworten Zitat