![]() |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Hier das kurze Log:
Delphi-Quellcode:
TIdThreadSafe und TIdCriticalSection ist von Indy und klar (by Design).
--------------------------------2008/5/17 20:10:14--------------------------------
This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer): 5 - 12 bytes: TIdThreadSafeInteger x 1 13 - 20 bytes: TPNGList x 2 21 - 28 bytes: TIdCriticalSection x 2, TPen x 2, TBrush x 2 29 - 36 bytes: TFont x 2, Unknown x 2 53 - 68 bytes: Unknown x 1 85 - 100 bytes: TCanvas x 2 549 - 612 bytes: TPNGObject x 2 Kommentiere ich die beiden fraglichen Zeilen aus gibt es keine (bzw. nur die gewollten Indy) Leaks. Gruß Assertor Edit: Endlich ein roter Kasten ;) Das prüfe ich gleich mal ab mit Graphics32. |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Ich kenne deine Anwendung ja nicht, aber kann es vielleicht sein, dass das Speicherleck von TPNGObject auch durch die Indys entsteht? Immerhin sind dort auch zwei TIdCriticalSection offen geblieben.
Mit MemProof habe ich keine Probleme. Vielleicht solltest du nochmal einen Test ohne die Indys durchführen. Gruss Thorsten |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Nein, Lecks sind nicht von Indy. Ich verwende die aktuelle FPC/Lazarus Indy Port für die Delphi VCL - alles sehr aktuell. Daher nicht so typisch die Meldungen.
Aber TPNGObjects werden da nicht verwendet ;) Gruß Assertor P.S.: Hab grad Graphics32 gesehen. Da ist auch kein adäquater Ersatz für TPNGImageList. Ich versuche mal das nachzuprüfen... |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Liste der Anhänge anzeigen (Anzahl: 1)
Kannst du nicht einfach mal eine leere Anwendung zum testen benutzen.
Edit: Die TPNGImageList musste ich erstmal finden! ( ![]() Edit2: Anhang enthält mal das Archiv (ohne Setup!) |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Liste der Anhänge anzeigen (Anzahl: 1)
Bei TBX 2.2 Alpha ist eine sehr funktionale ImageListe dabei. Leider ist die Projektseite (
![]() |
Re: Ersatz für Buggy/Deprecated pngdelphi?
So, ich habe jetzt mal alle Komponenten aus #14 ausprobiert und mit FastMM auf Speicherlecks getestet. Da ist alles in Ordnung!
Der Fehler muss in deinem Quellcode liegen. Gruss Thorsten |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Zitat:
An alle anderen: Danke für die Tipps, ich prüfe das nochmal ab. |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Ja habe ich, mein Testfall ist folgender...
Delphi-Quellcode:
Den zeigt mir FastMM auch als einziges an...
procedure TForm.FormCreate(Sender: TObject);
type TMyType = record a:integer; end; TMyPType = ^TMyType; var MyP:TMyPType; begin new(MyP); end;
Code:
Gruss--------------------------------2008/5/17 22:22:17-------------------------------- A memory block has been leaked. The size is: 4 Stack trace of when this block was allocated (return addresses): 402963 [System][@GetMem] 4725AA [Unit1.pas][Unit][TForm.FormCreate] 452CCB [Forms][TCustomForm.DoCreate] 4529AB [Forms][TCustomForm.AfterConstruction] 4037D2 [System][@AfterConstruction] 452981 [Forms][TCustomForm.Create] 7C91FB6C [RtlNtStatusToDosError] 7C91FB71 [RtlNtStatusToDosError] 7C809382 [GetTickCount] 7C84051D [ValidateLocale] The block is currently used for an object of class: Unknown The allocation number is: 744 Current memory dump of 256 bytes starting at pointer address 1022320: [...unwichtig, deshalb gelöscht...] --------------------------------2008/5/17 22:22:17-------------------------------- This application has leaked memory. The small block leaks are (excluding expected leaks registered by pointer): 1 - 4 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". Thorsten |
Re: Ersatz für Buggy/Deprecated pngdelphi?
Hallo,
danke für die ganze Hilfe. Ich habe jetzt beschlossen, die MemoryLeaks zu ignorieren, da ja PNGdelphi dank Gustavo Daud in Tiburón enthalten sein wird. Somit liegt das Problem dann in der VCL und nicht bei mir ;) Gruß Assertor |
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:07 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz