Execution.GetThread
- Updated2024-10-09
- 1 minute(s) read
Execution.GetThread
Syntax
Execution.GetThread( index)
Return Value
Purpose
Returns a Thread object for the thread that you identify by index.
Remarks
Do not call this method when handling a UIMsg_Trace message because TestStand allows non-foreground threads to run and complete while TestStand handles trace events. As a result, obtaining a thread by index is unreliable during trace event handling.
Parameters
index As Long
[In] Specifies the zero-based index of the list of threads in the execution.