Contributions
Re: Is there any code that I could use to clear memory?
Hi Alex Thank you for your response. This memory-increasing issue only occurs when running the codeon Windows Mobile Application on the actual device. It does not happen with windows application such as notepad. I am not sure if it also occurs on Windows Mobile emulator, but I suggest you to try it on an actual windows mobile device, if you have access to one. I will try the AQTimein a short moment - thanks for the detailed steps. Cheers3.4KViews0likes0CommentsRe: Is there any code that I could use to clear memory?
Hi David Thanks for your response. I have the latest TC which is 7.5.2. Your code still behaves the same andI also tried to nullify all the variables before and after within the loop by doing the following: function test() { Log.LockEvents(); while (true) { var BB = null; var picture = null; BB = WinCETestedApps.BubbleBreaker.Run(); picture = BB["Window"]("Bubble Breaker").Picture(); picture = null; BB = null; } } I have Samsung Omnia 2 I8000 as a test phone. Thanks3.4KViews0likes0CommentsRe: Is there any code that I could use to clear memory?
Sorry it was a false discovery. it was not actually letting go of the memory it was using. Even though the memory usage of TestCompletedropped from 1.6gb to 20mb, the available memory was still not reclaimed and stayed unchanged.3.4KViews0likes0CommentsIs there any code that I could use to clear memory?
I have been trying to write a little script fortestinga windows mobile software andI have noticed that whenever the script does something, the memory usage of testcomplete 7 keeps increasing and crashes eventually. The following is a little example using bubble breaker. function Main() { Log.LockEvents(); var BB = WinCETestedApps.BubbleBreaker.Run(); while (true) { BB.Refresh(); var picture = BB["Window"]("Bubble Breaker").Picture(); } } For each loop, the memory usage keeps increasing until it reached 1.6gb and finally crashed. I even turned off events to see if it was the log that keeps building up but it wasn't. I also tried the above code with an windows application and seems that the memory usage does not increase as much as when run on a windows mobile application. Is there any particular reason for this or is it just a memory leak problem that needs to be fixed? Is there any code that I could use to clear memory? Thanks9.8KViews0likes9Comments