Show: Delphi C++
Display Preferences

System.ReportMemoryLeaksOnShutdown

From XE2 API Documentation
Jump to: navigation, search

Delphi

ReportMemoryLeaksOnShutdown: Boolean;

C++

extern PACKAGE bool ReportMemoryLeaksOnShutdown;

Contents

Properties

Type Visibility Source Unit Parent
variable public
System.pas
System.hpp
System System

Description

Report memory leaks on shutdown.

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.

See Also

Code Examples

Personal tools
Previous Versions
Translations