Root > Reference > All Functions > CanCallMemWipeStack

Function CanCallMemWipeStack

Previous pageReturn to chapter overviewNext page   

Indicates if the MemWipeStack function should be called.

 

Unit

ELowLevel

 

Syntax

 

Code (Delphi)

function CanCallMemWipeStack: Boolean;

 

Return value

True if the MemWipeStack function should be called, <\ False otherwise.

 

Remarks

Function returns True if the following conditions are met:

The "Wipe Stack" option is enabled;
Current thread has EurekaLog enabled;
Current thread is not about to exhaust the stack space;
Current thread is not in a "weird" state (for example: invalid StackLimit value);

 

Examples

 

Code (Delphi)

procedure TForm1.ClearStackOnIdle(Sender: TObject; var Done: Boolean);

begin

if CanCallMemWipeStack then

MemWipeStack;

Done := True;

end;

procedure TForm1.FormCreate(Sender: TObject);

begin

Application.OnIdle := Self.ClearStackOnIdle;

end;

 

See also




Send feedback... Build date: 2021-10-15
Last edited: 2021-10-15
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_elowlevel_cancallmemwipestack.php