SetEurekaLogInThread procedure

Top  Previous  Next

EurekaLog includes a procedure called SetEurekaLogInThread, that enables you to activate/deactivate EurekaLog in a specified thread.

 

Syntax of this function is as follows:

 

procedure SetEurekaLogInThread(ThreadID: DWord; Activate: Boolean);

 

The ThreadID parameter indicates the Thread ID and Activate indicates the EurekaLog state (Active/Disactive).

 

Example:

 

 

uses ExceptionLog; // The required unit...

 

begin

   ...

   SetEurekaLogInThread(GetCurrentThreadID, False); // Disable EurekaLog in the current Thread.

   ...

end;