Root > Reference > All Functions > IsMemLeaksEnabled

Function IsMemLeaksEnabled

Previous pageReturn to chapter overviewNext page   

Indicate if memory leaks checks are enabled.

 

Unit

EMemLeaks

 

Syntax

 

Code (Delphi)

function IsMemLeaksEnabled: Boolean;

 

Return value

True - memory leaks checks are enabled, False otherwise.

 

Remarks

This function indicate if memory leaks checks are enabled.

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

See also description of EMemLeaks unit.

 

This is a global state, which can be changed via EnableMemLeaksRegistering/DisableMemLeaksRegistering or SetMemLeaksRegistering functions. You may temporally disable memory leaks checks when executing code with large amount of memory allocations which are guaranteed not to leak.

 

Note

This function will always return False if EurekaLog is not installed. See IsMemLeaksInstalled function.

 

Tip

This function also returns False when inside EurekaLog's own code.

 

See also

SetMemLeaksRegistering 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_ismemleaksenabled.php