06-15-2006 05:46 AM
06-16-2006 07:40 AM
06-19-2006 10:10 AM
Hi Mike,
I've had a look at your post, and you seem to have covered most settings in TestStand, when trying to work out where its coming from.
If you are using arrays to pass data around, then you could use a statement step to remove the elements from the array once you have finished with the part of the sequence that concerns those arrays. There is a function RemoveElements() which you can use to remove a number of elements from an array.
I've had a look at this with the example you suggested of using a statement to simply increment the number of array elements for each step run, and set the step to loop for 10,000 iterations. In the cleanup group of this sequence, I've included a statement step which uses this RemoveElements function to remove the number of elements currently in the 'Locals.array', (using the GetNumElements() function to know how many exist).
Using this, when I run the sequence, I see the memory increase as it increments the array, but at the end of the sequence I can see the memory is released and the memory usage figure drops to (almost) the same as it was before running the sequence. Without this step in the cleanup group - I see the same behaviour of the increased memory not being released.
I've attached the sequence I created to the post, take a look at this and let me know if it resolves the concerns you have, if not then let me know, and I'll take a further look into this for you.
Regards
Hannah
NIUK & Ireland
06-19-2006 01:48 PM