My application has a process that varies so I want to wait for the finished window to appear. I set the timeout to -1 so the wait time is infinite. When I play it back it only waits 10 seconds. That is the project default wait time. How come the -1 does not work? I'm using TC6.
w := myapp.ModuleListProvider.WaitWinFormObject('*', 'Module List for Extraction', -1);
I suggest that you verify the parent objects of the target object. If one of the parent objects does not exist, TC will be waiting for the non-existent object for 10 seconds (the default value of the Auto-wait timeout option) and never wait for the needed object you are trying to get using the WaitWinFormsObject method. To avoid the situation, you need to wait for the problematic parent object first, and after that, try to get the needed Module List for Extraction object.
If the suggestion above does not help, please update your product to the latest version. TestComplete 7.51 is available for downloading from our web site and from our ClientServices portal.
If you still have the issue with TC 7.51, please zip the entire project suite folder along with logs of the test execution and send me the archive.