Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Memory leak in most Delphi Versions (https://www.delphipraxis.net/107770-memory-leak-most-delphi-versions.html)

Remko 1. Feb 2008 22:20


Memory leak in most Delphi Versions
 
There seems to be a memory leak in most Delphi versions when using resource (strings) for multiple languages. We discovered this while compiling the Jwscl (Jedi Security Library) where bds.exe leaks around 34 MB on every compile. I have already reported this in QC.

This issue is confirmed by several people now on the following Delphi versions:
D5
D7
D2007/RAD Studio 2007

The following versions are confirmed to not have this issue:
BDS 2006

I would like to ask the following:
If you have a Delphi version not listed above, could you please test and confirm in QC? I included a resource file in QC that can be used for testing. If you can reproduce this or think it requires Codegear's/Borlands attention please rate the issue in QC.

Thank you.

Dani 1. Feb 2008 23:18

Re: Memory leak in most Delphi Versions
 
Zitat:

If you have a Delphi version not listed above, could you please test and confirm in QC? I
Edit: I need to spend more time reading the OP before hitting the reply button :(

alzaimar 2. Feb 2008 06:59

Re: Memory leak in most Delphi Versions
 
Don't get me wrong, but I have to restart my Delphi version (D6, BDS 2006E) every 30 minutes or so anyway, so this does not really affect me. :zwinker:

Remko 2. Feb 2008 14:03

Re: Memory leak in most Delphi Versions
 
The only way to improve and to get bugs fixed is to report them in QC! THe more people rate issues and complain about them the higher chances are they get fixed!

Dezipaitor 3. Feb 2008 14:01

Re: Memory leak in most Delphi Versions
 
Zitat:

Zitat von alzaimar
Don't get me wrong, but I have to restart my Delphi version (D6, BDS 2006E) every 30 minutes or so anyway, so this does not really affect me. :zwinker:

Erstelle ein Projekt mit der Resourcendatei und kompilieren das Projekt ungefähr 20-30mal. Das kriegst du in 5min hin und trotzdem wird dein Delphi danach nicht mehr weitermachen können. Völlig losgelöst von den 30min.
D.h. du bist auf jeden Fall trotzdem davon betroffen.

Je mehr Leute, den Bug melden, desto wahrscheinlicher wird er gefixt. Ich kann es nämlich garnicht glauben, dass dieser Bug schon seit sovielen Jahren existiert, ohne dass er aufgefallen ist.

Die Muhkuh 3. Feb 2008 14:07

Re: Memory leak in most Delphi Versions
 
Wenn ich z.B. mit Turbo Delphi ein neues Projekt anlege und schreibt in die DPR

Delphi-Quellcode:
ReportMemoryLeaksOnShutdown := true
und starte das Projekt, ohne irgendwelchen zusätzlichen Code, kommt beim Beenden eine Meldung, wegen eines MemoryLeaks.

alzaimar 3. Feb 2008 15:57

Re: Memory leak in most Delphi Versions
 
Zitat:

Zitat von Dezipaitor
Zitat:

Zitat von alzaimar
Don't get me wrong,...

Erstelle ein Projekt mit der Resourcendatei und kompilieren das Projekt ungefähr 20-30mal....

Du hast mein Post nicht verstanden. Ich wollte damit zum Ausdruck bringen, das Delphi/BDE sowieso instabil ist, da fällt das nicht ins Gewicht :zwinker:

Dezipaitor 3. Feb 2008 16:06

Re: Memory leak in most Delphi Versions
 
Zitat:

Zitat von alzaimar
Zitat:

Zitat von Dezipaitor
Zitat:

Zitat von alzaimar
Don't get me wrong,...

Erstelle ein Projekt mit der Resourcendatei und kompilieren das Projekt ungefähr 20-30mal....

Du hast mein Post nicht verstanden. Ich wollte damit zum Ausdruck bringen, das Delphi/BDE sowieso instabil ist, da fällt das nicht ins Gewicht :zwinker:

Hehe, das sowieso. Je mehr Plugins und Komponenten installiert sind, desto wahrscheinlicher. Aber mit Delph7 und den Updates fahre ich immernoch am besten. Besonders da mit Speedup die (Start-)Geschwindigkeit sehr erträglich ist.
Seit ich diese Resourcendatei erstellt habe, traten immer Speichermangelfehler in Delphi auf. Das war das größte Problem.


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:53 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