Hi, SijinK:
My problem results from When I try to create a multi-window Operator interface, I follow the instructions of the TestStand Reference manual,
which indicates that I can invoke ApplicationMgr.GetSequenceFileViewMgr to determine whether a SequenceFileView Manager control is currently
displaying a sequence file. And I was trapped at the repeated "Invalid Pointer" exception.
My basic assumption is, GetSequenceFileViewMgr() should be able to return something successfully no matter if any sequence file has been opened,
because TestStand Help indicates that it will return either an Object reference or NULL. But it looks like I may misinterpret something.
So I try to keep the default Operator Interface application intact ,but add some codes for debug observation. And as in my previous reply,
I just add one line of code into the event DisplaySequenceFile()
Private Sub axApplicationMgr_DisplaySequenceFile(ByVal sender As Object, ByVal e As NationalInstruments.TestStand.Interop.UI.Ax......)
axApplicationMgr.GetSequenceFileViewMgr(e.file)
axSequenceFileViewMgr.SequenceFile = e.file
End Sub
And the result is, at the very beginnig of opening a sequence file, say A.Seq, GetSequenceFileViewMgr() issues "Invalid pointer" exception.
But if I ignore it, and execute the sequence file assignment, GetSequenceFileViewMgr() behaves normally when I open a sequence file next time.
i.e. if no SeguenceFileView Manager displays the selected sequence file, it return Nothing, else it returns a System.__ComObject which can be
re-casted to a desired type.
Any comments for this part?
Thanks.