RHoward
13 years agoNew Contributor
Memory cleanup in scripts
I'm noticing that the memory usage of TestComplete is fairly consistent
with some of my scripts and grows constantly with others, so I probably
introduced a memory leak. Does anyone have any information or advice about cleaning up objects or arrays when running scripts? How much manual cleanup is needed for a script that will run through to completion dozens or hundreds of times in a row? It seems like there is a garbage collect happening, but maybe I'm doing something that gets in the way like leaving pointers around.
I'm using JScript if that makes a difference, and the only tests I have problems with tend to have arrays, objects, and sometimes arrays of objects.
with some of my scripts and grows constantly with others, so I probably
introduced a memory leak. Does anyone have any information or advice about cleaning up objects or arrays when running scripts? How much manual cleanup is needed for a script that will run through to completion dozens or hundreds of times in a row? It seems like there is a garbage collect happening, but maybe I'm doing something that gets in the way like leaving pointers around.
I'm using JScript if that makes a difference, and the only tests I have problems with tend to have arrays, objects, and sometimes arrays of objects.