Root > Reference > All Functions > CheckHeap

Procedure CheckHeap

Previous pageReturn to chapter overviewNext page   

Checks heap for consistency.







Code (Delphi)

procedure CheckHeap;



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.



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



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



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: 2022-03-28
Last edited: 2022-03-28
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: