RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.ReportMemoryLeaksOnShutdown Variable

Report memory leaks on shutdown.

Pascal
ReportMemoryLeaksOnShutdown: Boolean;
C++
Boolean ReportMemoryLeaksOnShutdown;

System

Set ReportMemoryLeaksOnShutdown to report memory leaks on shutdown. 

The memory manager can report memory that was allocated but not freed by the time the memory manager shuts down. Such memory blocks are called memory leaks and are often the result of programming errors. When this global variable is set to True, the Memory Manager will scan the memory pool when it shuts down and report all unregistered memory leaks in a message dialog. The default value for ReportMemoryLeaksOnShutdown is False

Expected memory leaks can be registered so the Memory Manager will ignore them during its checks for memory leaks. Use the procedures RegisterExpectedMemoryLeak and UnregisterExpectedMemoryLeak to control the memory areas that the Memory Manager checks for leaks. 

 

Memory Management 

Configuring the Memory Manager 

Registering Memory Leaks 

RegisterExpectedMemoryLeak 

UnregisterExpectedMemoryLeak

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!