NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected operating System Error

Running under TestStand IDE I get:
Unexpected operating System Error
Error Code -17501
Source 'TSAPI'
I have a screen shot of the error. The error is not alays generated by the same sequence execution. The error is displayed while on a 'label step' sometimes. The IDE is frozen after this error occurs.
Any suggestions that you might have are welcomed.
0 Kudos
Message 1 of 4
(4,088 Views)
Jacy -
This error usually occurs when the sequence editor has an error that it never expected or could handle. There is not any further information that can be assumed from the screen shot.

Do you see this problem when not using PCAnywhere?

It appears that you are using TS 1.x, Yes? Do you know if the problem occurs with TestStand 2.x? If you do not have a copy, an evaluation copy is available for download and it is almost identical to the release except for some timeout behaviors, i.e. limited to 10 minute executions.

Scott Richardson
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 4
(4,088 Views)
Thanks, now that I am not using PC Anywhere I don't get -17501 error codes, now I get -17502 errors instead. These errors do not cause TestStand to crash, but are more of a nusance. I am running TestStand 2.0 in all cases.
Thanks Again,
Jeff
0 Kudos
Message 3 of 4
(4,088 Views)
Jeff,

Almost every time I have encountered a -17502 error, it has been caused by memory corruption within a code module. Most often it occurs with string copying and char pointer manipulation within the code module. In general I also check pointer and string code when these errors occur. Sometimes the error is not reported until after the offending code is executed; the offending code corrupts memory that is later causes an error when accessed. Perhaps through a process of elimination you can determine what step(s) are causing this error.
0 Kudos
Message 4 of 4
(4,088 Views)