NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

"-5001; User-defined error code." during Report Generation

After TestStand finished running the test sequence and while it was generating the report, a Run-Time Error appears.
 
Details: No details available.
Error Code: -5001; User-defined error code.
Location: Step 'Add Root Tags To Final Report' of sequence 'AddRootTagsToReport' in 'reportgen_xml.seq'
 
In the test sequence, there's a step which calls a dll function that runs in a separate thread, does this have anything to do with the error?
I also have 2 "Close SQL Statement" steps and 1 "Close Database" step under the Cleanup tab.
 
Can someone please help me figure out what the problem might be?
Attached is a word doc containing the captured screens.
 
I'm using TestStand 3.5 and I use "Single Pass" to run the sequence in the SequentialModel mode.
0 Kudos
Message 1 of 4
(3,936 Views)
A bit more info.
 
The function that runs in a separate thread displays 2 panels that need to be visible during the running of the test sequence, because the panels are used to display debug messages. Currently I use a clickable button one one of the panels to disconnect sessions and discard panels after the testing is done. Maybe this caused the error?
0 Kudos
Message 2 of 4
(3,919 Views)
Hi Tom,

This is an error code that is undefined, because it is just a general error that leaves the explanation up to the programmer of the DLL. Since this error is occuring in this specific step that calls a DLL, it would be a problem that is occuring in that DLL. This could be an infinite number of things, from illegal memory management to trying to access something that is no longer in memory. Since you are running multiple threads and using SQL, there could be many different problems with this DLL trying to access anything that could cause this error. I'm sorry there is not much more information, but it is definitely something inside of this DLL causing this problem.

Brandon Vasquez | Software Engineer | Integration Services | National Instruments
0 Kudos
Message 3 of 4
(3,904 Views)
Thank you, Brandon.
 
Tom
 
0 Kudos
Message 4 of 4
(3,888 Views)