Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi MemCheck unter TurboDelphi (https://www.delphipraxis.net/129409-memcheck-unter-turbodelphi.html)

Hannes Kuhn 18. Feb 2009 17:59


MemCheck unter TurboDelphi
 
Hallo,

unter TurboDelphi werden mir diverse Speicherleaks angezeigt, selbst wenn ich nur eine Form ohne eigenen Code compiliere.

Von MemCheck 2.75 kommen dann Meldungen wie:

MemCheck version 2.75

TOP 10 Leaks: begin
Leak #0 User allocated memory (GetMem)
Size: 112
1 Occurence
call stack - 0 : Module StdCtrls.pas Routine @Stdctrls@TButton@CNCtlColorBtn Line 3673 Find error: 0042BED8
call stack - 1 : Module StdCtrls.pas Routine @Stdctrls@TButton@CNCtlColorBtn Line 3674 Find error: 0042BEE5
call stack - 2 : Module Controls.pas Routine @Controls@TControl@WndProc Line 5143 Find error: 0043F22C
call stack - 3 : Module Controls.pas Routine @Controls@TWinControl@WndProc Line 7246 Find error: 00443DD5
call stack - 4 : Module StdCtrls.pas Routine @Stdctrls@TButtonControl@WndProc Line 3513 Find error: 0042B9CB
call stack - 5 : Module Controls.pas Routine @Controls@TWinControl@MainWndProc Line 7021 Find error: 00443493

.....

was ist da los ?


Viele Grüße
Hannes

DP-Maintenance 18. Feb 2009 18:25

DP-Maintenance
 
Dieses Thema wurde von "fkerber" von "Neuen Beitrag zur Code-Library hinzufügen" nach "Sonstige Fragen zu Delphi" verschoben.
Dieses Forum dient dem Vorschlagen neuer Code-Schnipsel für die Code-Lib. Da es sich hier aber um eine Frage handelt, verschiebe ich mal ;)

Hannes Kuhn 19. Feb 2009 17:03

Re: MemCheck unter TurboDelphi
 
Hallo,

keiner ne Idee ?

Viele Grüße
Hannes

sirius 19. Feb 2009 17:13

Re: MemCheck unter TurboDelphi
 
Dann gehe doch mal in die Unit StdCtrls rein und schaue dir die Methode TButton.CNCtlColorBtn an. Bei mir Delphi 7 ist da kein Memoryleak. Da wird nichtmal Speicher angefordert.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:37 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz