Forum Discussion
I know you've posted several questions in the forum, but I'm seeing a pattern. You keep reporting that your application under test is closing and you don't know why.
Let's back up and try the application without TestComplete. Can you step through a test case manually and have it work? Or do you still get the crash?
After you've tested manually, check Task Manager. Are there multiple copies of your application running? Are there any other programs running that are taking up a lot of memory? TestComplete wants a lot of memory and if you have little available when you do run it, it may lock up or crash.
Now try the test with TestComplete again. Check Task Manager after it's done. Are there multiple copies of the application now? Are there any other programs running that are taking up a lot of memory?
Let's find a way to keep your application running under TestComplete and then see if you still need to change your code.