Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/Dialog Controls    [ Add a report in this area ]  
Report #:  58918   Status: Closed
Memory leak when dynamically loading DLL with Dialogs unit uses
Project:  Delphi Build #:  0
Version:    11.2 Submitted By:   Jerome DUVAL
Report Type:  Basic functionality failure Date Reported:  2/29/2008 9:20:46 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   258018
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : 15.0.3589.25711
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
There is a memory leak when DLL are dynamically loading and unloading when the Dialogs or Controls units are in uses.

This a critical bug when the DLL is used by a windows service !

Versions concerned : Delphi 6, 7 & 2007
Steps to Reproduce:
Compile a simple DLL with the dialogs unit in the uses.
Use this code to load the DLL :

Hdll := LoadLibrary(PChar(DLLFileName));
try
finally
  FreeLibrary(Hdll);
end;
Workarounds
None
Attachment
None
Comments

Andreas Hausladen at 3/1/2008 7:16:57 AM -
There is a workaround in CodeCentral:
http://cc.codegear.com/Item/25104

Jerome DUVAL at 3/6/2008 7:46:50 AM -
Thanks a lot, it works fine !

Server Response from: ETNACODE01