Execution.NumThreads

Syntax

Execution.NumThreads

Data Type

Long

Purpose

Returns the current number of threads in the execution.

Remarks

Do not access this property when handling a UIMsg_Trace message. TestStand allows non-foreground threads to run and complete while TestStand handles trace events. As a result, obtaining the number of threads is unreliable during trace event handling.

See Also

Execution.ForegroundThread

Execution.ForegroundThreadIndex

Execution.GetThread

Thread

UIMessageCodes