I am trying to automate testing of a complex graphics multithreaded application in Win NT environment. There are a lot of custom objects of course.
The script , which I've created (recorded) invokes window from the another window.
(Frames are captured and inc files are added to the script file).
There is no parent -child relationship between these 2 windows - they are different threads.
I was able to record all the actions without any problems, but when I tried to play it back script got deadlocked at the moment of invoking next window. And I was able to get out of the situation only by launching WNT Task Manager.
What could be the cause of this failure?

I would highly appreciate any advise.