D2006's MM BUG or D2006's BUG?



Step to reproduce:

1. Create a new project group
2. Create a new package (Named 'Package1.bpl'; Output Directory is '.\')
3. Create a new console application (or VCL Form application)
4. Set application project's option: Check build with package option, and
add 'Project1' in build with packages
5. In application project's dpr file:
uses SysUtils;
...
ReportMemoryLeaksOnShutdown := True;
UnloadPackage(LoadPackage('Package1.bpl'));
6. Build all project group.
7. Run application.

You will recive a messagebox as below:
---------------------------
Unexpected Memory Leak
---------------------------
An unexpected memory leak has occurred. The unexpected small block leaks
are:

1 - 12 bytes: Unknown x 1
1645 - 1804 bytes: Unknown x 1
---------------------------
OK
---------------------------

I test fastmm4 with Delphi 7 (Regardless package project uses with fastmm4),
No memory leak reported.
If package relationship is more complex, the memory leak is reported more.


.



Relevant Pages

  • memory leak & ISAPI DLL
    ... is there any way to check for memory leak for ISAPI DLLs using FastMM4 ... (BDS2006 memory manager)? ... The ReportMemoryLeaksOnShutdown does not work ...
    (borland.public.delphi.language.basm)
  • Re: ReportMemoryLeaksOnShutdown
    ... > I would like to know if there is any performance loss when I enable ... > ReportMemoryLeaksOnShutdown:= True in my D2006 app. ... The memory leak check is only performed on shutdown. ...
    (borland.public.delphi.language.basm)