Using TestStand 3.0, LV 7.1(witht 7.1.1 Update), Win2K, 3GHz P4, 512Mb.
Have written a custom OI, (Sort of based on the Simple OI that ships with TS3.0, but heavily tweeked).
Now I've had problems with memory leaks...... I've read the other posts on this issue and they don't seem to answer these problems.
Now going back a step, To confirm I'm not doing something stupid, I ran the OI's that ship pre-built with TS, with the "Benchmark.seq" sequence about 10-15 times(Tracing ON, Reports ON, Test UUT Entry Point). This seems to show that each run "leaks" about 92Kb each run. Now that doesn't seem much but test 1000units a day, and that will eat up around 100Mb of RAM, and that ridiculous! Its not the report in this case as thats only a few lines of text
With the OI that I've built up, leaks about 112Kb of RAM on the same Sequence. I'm not using the standard controls (eg Execution View) to display the progress, but using the Trace message to get what test last executed and putting the value in a table, I'm sure I've close off the references and acknowledged the UI messages recieved from TS when I've finished using them(using mainly the Close Reference.vi on all refs/SequenceContexts/Property Objects....ect, and acknowledging the UI Message when finished with it)
When running a "Real" test sequence on a test rig the situation is many times worse(can be 100's Kb per run depending it seems on the size of results file), I assume as the results are stored somewhere in TS between UUT runs.
Questions:
Why is there what seems like memory when leak running TS(even with the prebuilt OI's)?
How to minimise this leaks?
Which refs need particular attention, and whats the right method of closing them properly?
How to purge the TS runtime engine of the stored results between each run in "Test UUT's", and get it to free up the memory? (I assume this is why the memory it rising alot while testing with a sequence running real tests).
Does this happen with TS3.1?
Any help much appriciated, as this problem is really slowing things down here.