Root > Reference > All Functions > CheckHeap

Procedure CheckHeap

Previous pageReturn to chapter overviewNext page   

Checks heap for consistency.

 

Unit

EMemLeaks

 

Syntax

 

Code (Delphi)

procedure CheckHeap;

 

Remarks

This function will scan heap (dynamically allocated memory) and check each memory block for errors. The errors include overflow and underflow errors (i.e. overwriting header/footer of memory block).

 

This function will call MemLeaksError event handler for each found error. This usually results in showing bug report about the problem and terminating application.

 

Tip

The function will scan only memory blocks allocated via EurekaLog's memory filter with enabled registering memory leaks.

 

Note

This function will do nothing if memory leaks checks are not enabled or if leOverflow value is in MemLeaksErrorsToIgnore global variable.

 

Warning

This function will block all memory operations during scanning. Also, the scan takes a lot of time to complete. Do not call this routine in production. This function is designed to be called for local debugging purposes only. I.e. call this routine to locate known memory corruption issue.

 

See also




Send feedback... Build date: 2024-09-30
Last edited: 2024-09-30
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_checkheap.php