Hi,
I'm writing a User Interface in VB based around the simple example which ships with TestStand and am including a display window to show all the steps in the current step group and to highlight the execution progress.
I am receiving the Trace_UI message and am extracting the Thread from it. I am then extracting the SequenceContext from the Thread and then the StepIndex property from the Context.
The code is as follows:
Set Context = UImsg.Thread.GetSequenceContext(0, frameId)
StepIndex = Context.StepIndex
The problem is that the StepIndex property is always returned as -1.
(The PreviousStepIndex property appears to be correct.)
I am wondering if this is because for a Trace Event, there is assumed to be no currently exec
uting step?
Can anyone suggest why this happens or maybe another way to obtain the current step index?
Thanks
Dan