Ranorex prevents application from loading
Posted: Fri Dec 05, 2008 6:38 pm
I'm running a process and waiting for the application to show up.
I use a User32 API call to find the window But this function returns 1 immediately after the splash screen is displayed , that's why I then use Ranorex function
to wait until the application is fully loaded, passing there the path of an element that is displayed in the application only after it is fully loaded (ribbon control), and specifying a 60 seconds timeout.
4 times out of 5 this works fine, but one time the application just stops to load and the splash screen is displayed forever until you kill the process.
I'm sure this is caused by Ranorex, because I just tried substituting the Ranorex code by simple Thread.Sleep (10000), and it worked 100 times out of 100 tries.
I use a User32 API call to find the window
Code: Select all
FindWindow(String lpClassName, String lpWindowName)
Code: Select all
ElementRepository.CreateAdapterForPath<Element>(Path, timeout)
4 times out of 5 this works fine, but one time the application just stops to load and the splash screen is displayed forever until you kill the process.
I'm sure this is caused by Ranorex, because I just tried substituting the Ranorex code by simple Thread.Sleep (10000), and it worked 100 times out of 100 tries.