NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Proper usage of Thread.WaitforEnd method from C++ DLL module

Here is a snippet of code that I am using in a C++ DLL module of mine:
TS::SequenceContextPtr pSeqContext_;
TS::SequenceFile *seqFile_;
TS::Thread *threadObj;
_bstr_t seqName_;
bool threadStatus;
...
At this point in the code all the variables defined above are initialized
...
threadObj = pSeqContext_->Execution->NewThread(seqFile_, seqName_, 1, NULL, NULL);
threadStatus = threadObj->WaitForEnd(-1,
                                                             true, (IDispatch *)pSeqContext_->Step->AsPropertyObject(), (IDispatch *)pSeqContext_->AsPropertyObject());
...
 
0 Kudos
Message 1 of 2
(2,744 Views)
This is a duplicate post.  Please see this post.
0 Kudos
Message 2 of 2
(2,733 Views)