08-10-2011 07:29 AM
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
08-11-2011 04:02 AM
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.
08-11-2011 04:09 AM
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