Root > Reference > Main routines > IsEurekaLogActiveInThread

Function IsEurekaLogActiveInThread

Previous pageReturn to chapter overviewNext page   

Indicates if EurekaLog is active or disabled in the specified thread.

 

Unit

EBase

 

Syntax

 

Code (Delphi)

function IsEurekaLogActiveInThread(

const AThreadID: Cardinal = 0

): Boolean;

 

Parameters

AThreadID [in, optional]

TID - thread ID which EurekaLog's status should be checked. Use 0 (default) for current thread.

 

Return value

True if EurekaLog is active in the specified thread, False - otherwise.

 

Remarks

This is per-thread version of the IsEurekaLogActive function.

 

This is a per-thread status. If you want to check global activation status - use the IsEurekaLogActive function.

 

If you want to change activation status (enable or disable EurekaLog) - use SetEurekaLogState for global status and SetEurekaLogStateInThread for per-thread status.

 

Caution!

This function doesn't respect global activation status.

 

Examples

 

Code (Delphi)

if IsEurekaLogActive then

 if IsEurekaLogActiveInThread then

// this exception will be handled by EurekaLog, since EurekaLog is enabled

raise Exception.Create('Error message')

 else

// this exception will NOT be handled by EurekaLog, since EurekaLog is disabled in current thread

raise Exception.Create('Error message')

else

// this exception will NOT be handled by EurekaLog, since EurekaLog is disabled globally

raise Exception.Create('Error message');

 

See also




Send feedback... Build date: 2026-03-31
Last edited: 2026-03-31
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_EBase_IsEurekaLogActiveInThread