We just upgraded yesterday to version 6.11.263.7 of TestComplete. As a matter of fact I have not been getting this error before the upgrade. The error does not happen every time. And it seems that reboot resolves the issue after the error happens first time. I cannot replicate it at will most of the time. I am trying to fix tests that several people worked on before me. Thank your for help in this matter.
I find it interesting that it has worked so far or at all.
[ QUOTE ]
Here is the line that sets p1 whare app name is a string.
Set p1 = Sys.Process(Project.Variables.AppName)
I am trying to debug tests somebody else wrote. Also, can you point me to a good best practices guide?
[/ QUOTE ]
Try replacing the Process call with WaitProcess and give it a few seconds on the timeout parameter. It COULD be possible, since it is sporadic, that there is a call to start the process but it may nont be fully up and running and recognized by the TestComplete object recognition immediately. WaitProcess puts that delay in there to allow for that recognition.