NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -17501 in Teststand3.1 when accessing SelectedSteps

If I try to query the property SequenceContext.SelectedSteps, I'm getting the errorcode -17501 (Unexpected Operating System Error).

This happens only in Teststand 3.1 not in Teststand 2.0.1.
I tried Labview6.1 and 7.1, but it returns always the same error.
0 Kudos
Message 1 of 4
(3,419 Views)
LVFan -
Starting in TestStand 3.0, we had to support vtable access to our COM API, so the entire API was touched. It appears that internally when returning arrays for the sequence context, we incorrectly validate the type of the elements and we throw an error when the type appears to be incorrect. It appears this problem occurs in 3.0 and 3.1.

A workaround is to use the property object interface, i.e. call
object = context.AsPropertyObject()
stepArray = object.GetPropertyObject("RunState.InitialSelection.SelectedSteps", 0)

Thank you for bringing this to our attention.
Scott Richardson (NI)
Scott Richardson
https://testeract.com
Message 2 of 4
(3,419 Views)
Thank you for your quick answer.

Is there an list of known bugs in Teststand3.1 in the web? I didn't find one on the support pages.
0 Kudos
Message 3 of 4
(3,419 Views)
LVFan -
NI posts known items to the knowledge base when appropriate. They are not catorgize by any specific list for you, but you should be able to search.

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 4
(3,419 Views)