Root > Reference > All Functions > DisableMemLeaksRegistering

Procedure DisableMemLeaksRegistering

Previous pageReturn to chapter overviewNext page   

Disables memory leaks checks.

 

Unit

EMemLeaks

 

Syntax

 

Code (Delphi)

procedure DisableMemLeaksRegistering;

 

Remarks

This function temporally disables regestering memory leaks. This is a global state, which can be checked with IsMemLeaksEnabled function. You can enable regestering memory leaks back with EnableMemLeaksRegistering function.

When registering memory leaks is enabled, EurekaLog will collect call stack information of each allocated memory block. Additional information (such as name, grouping, etc.) will also be stored.
When registering memory leaks is disabled, EurekaLog will not collect call stack and additional information. Overhead will be significantly reduced.

See also description of EMemLeaks unit.

 

Important!

This function will not disable generating report about already registered memory leak. To disable memory leak report - use ActivateMemoryLeakCheck function.

 

Note

You can use EurekaRegisterExpectedMemoryLeak function to register an expected memory leak or to disable leak reporting for already allocated memory block.

 

Caution!

DisableMemLeaksRegistering/EnableMemLeaksRegistering can not be called recursively. If you make two calls to DisableMemLeaksRegistering followed to one call to EnableMemLeaksRegistering - then registering of memory leaks will be enabled.

 

See also

ActivateMemoryLeakCheck Function



Send feedback... Build date: 2018-11-26
Last edited: 2018-11-26
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_function_ememleaks_disablememleaksregistering.php