Einzelnen Beitrag anzeigen

TiG

Registriert seit: 6. Apr 2011
Ort: Berlin
3.070 Beitrge
 
Delphi 10.4 Sydney
 
#1

FastMM Memory Error Detected beim Debuggen

  Alt 8. Aug 2012, 14:34
Delphi-Quellcode:
---------------------------
X.exe: Memory Error Detected
---------------------------
FastMM has detected an error during a FreeMem operation. An attempt has been made to free/reallocate a block that was allocated through a different FastMM instance. Check your memory manager sharing settings.

The block size is: 18

This block was allocated by thread 0x818, and the stack trace (return addresses) at the time was:

20007117 [System.pas][System][System.@NewUnicodeString][18313]
200067E8 [System.pas][System][System.@UStrFromPWCharLen][17197]
2009E26F [Controls.pas][Controls][Controls.TControl.GetText][5554]
270036
2005973A [StdCtrls.pas][StdCtrls][StdCtrls.TCustomCombo.Change][3570]
20059607 [StdCtrls.pas][StdCtrls][StdCtrls.TCustomCombo.CNCommand][3528]
2009FA05 [Controls.pas][Controls][Controls.TControl.WndProc][6642]
77608153 [RtlUnlockHeap]
77608153 [RtlUnlockHeap]
77608153 [RtlUnlockHeap]
77608153 [RtlUnlockHeap]

The block was previously used for an object of class: TChangeLink

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

The allocation number is: 77689

The block was previously freed by thread 0x818, and the stack trace (return addresses) at the time was:

20004245 [System.pas][System][System.TObject.FreeInstance][9810]
200047B9 [System.pas][System][System.@ClassDestroy][10632]
200B0D18 [ImgList.pas][ImgList][ImgList.TChangeLink.Destroy][1555]
2000428B [System.pas][System][System.TObject.Free][9829]
2005B9AE [StdCtrls.pas][StdCtrls][StdCtrls.TCustomButton.Destroy][4796]
200A146C [Controls.pas][Controls][Controls.TWinControl.Destroy][7737]
200B69B5 [Forms.pas][Forms][Forms.TScrollingWinControl.Destroy][2644]
200B78EE [Forms.pas][Forms][Forms.TCustomForm.Destroy][3246]
2000428B [System.pas][System][System.TObject.Free][9829]
200BCC25 [Forms.pas][Forms][Forms.TCustomForm.CMRelease][6249]
2009FA05 [Controls.pas][Controls][Controls.TControl.WndProc][6642]

The current thread ID is 0x818, and the stack trace (return addresses) leading to this error is:

405789 [System.pas][System][System.@LStrFromPWCharLen][14467]
270036
2005973A [StdCtrls.pas][StdCtrls][StdCtrls.TCustomCombo.Change][3570]
20059607 [StdCtrls.pas][StdCtrls][StdCtrls.TCustomCombo.CNCommand][3528]
2009FA05 [Controls.pas][Controls][Controls.TControl.WndProc][6642]
77608153 [RtlUnlockHeap]
77608153 [RtlUnlockHeap]
77608153 [RtlUnlockHeap]
77608153 [RtlUnlockHeap]
765E491D [LocalUnlock]
765E4933 [LocalUnlock]

Current memory dump of 256 bytes starting at pointer address 7EE676F0:

B0 04 02 00 00 00 00 00 02 00 00 00 31 00 32 00 00 00 17 10 FB 42 80 80 00 00 00 00 D0 14 E6 7E
00 00 00 00 00 00 00 00 F4 CD 00 20 00 00 00 00 A5 1F 01 00 4E 33 00 20 27 42 00 20 6E 47 00 20
5C 42 00 20 D1 B3 02 20 23 C7 09 20 4D 26 0A 20 01 27 0A 20 91 E1 09 20 E2 82 0A 20 E5 D1 09 20
18 08 00 00 18 08 00 00 6A 33 00 20 F0 83 00 20 97 BF 01 20 31 BF 01 20 96 23 03 20 6F 17 03 20
A6 11 03 20 E2 82 0A 20 88 11 03 20 4A D4 09 20 BA 15 0A 20 14 00 00 00 00 00 00 00 01 74 57 5F
90 85 02 20 B0 70 E6 7E 02 00 00 00 04 00 00 00 00 00 00 00 FE 8B A8 A0 00 00 00 00 D0 14 E6 7E
00 00 00 00 00 00 00 00 F4 CD 00 20 00 00 00 00 B0 D2 00 00 4E 33 00 20 17 71 00 20 E8 67 00 20
CA 6E 00 20 3B 2E 01 20 1D 3D 10 20 85 07 1F 20 D2 18 89 76 12 BF 1E 20 D6 F1 10 20 4A F6 10 20

. . . . . . . . . . . 1 . 2 . . . . . B € € . . . . . ~
. . . . . . . . . . . . . . . . N 3 . ' B . n G .
\ B . . # . M & . .
'  . ‘ . ‚ . .
. . . . . . . . j 3 . ƒ . — . 1 . – # . o . .
. . ‚ . ˆ . . J . . . . . . . . . . . . t W _
… . p ~ . . . . . . . . . . . . ‹ * . . . . . ~
. . . . . . . . . . . . . . . N 3 . . q . g .
n . ; . . . = . … . . . ‰ v . . . J .
---------------------------
OK
---------------------------
Ich habe seit einigen Tagen den externen FastMM installiert.

Wenn ich whrend des debuggens per MouseOver den Inhalt eines TCombobox.Text sehen will oder auch per Evaluate/Modify-Fenster entsprechende Property evaluieren will, kommt oben stehende Fehlermeldung.
Trotz jener Fehlermeldung, steht im Evaluate/Modify-Fenster der richtige Wert.

Anfangs steht ja: "Check your memory manager sharing settings".
Auf was soll ich da mein Augenmerk richten?

Der zweite Call Stack ("The block was previously freed...") ist auch jedes Mal anders. Ebenso die Block Size am Anfang der Fehlermeldung!
  Mit Zitat antworten Zitat