NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UIMessageEvent - Not able to get thread object

Hi,

 

In my Customized Opertor am handling UIMessageEvent for Event UIMsg_StartFileExecution.

am trying to get the sequencecontextObject by "SequenceContext seqctx = e.uiMsg.Thread.GetSequenceContext(0, out frameid);"

but e.uiMsg.Thread is returning NULL so am not able to get Sequencecontext Object.

can any one please clarify me why am not getting "Thread" Object in UIMsg.

 

Thanks a lot in advance

 

 

Regards

IVI

0 Kudos
Message 1 of 3
(2,866 Views)

GetSequenceContext returns a reference to the SequenceContext object of  the most recently executing step group for a 0 callStackIndex parameter.The possible reason for getting a Null value might be that no threads are currently running. Can you paste your entire code so that i can get a better idea of what you are doing. Or please ensure that the thread whose context you are trying to access is running.

0 Kudos
Message 2 of 3
(2,786 Views)

Hi Nitesh

 

Thanks a lot for your response

i found the wont be any thread running for the event "UIMsg_StartFileExecution.

i changed for "UIMsg_Trace" event which serves my purpose.

 

 

Thanks

IVI

0 Kudos
Message 3 of 3
(2,783 Views)