Page 1 of 1

Ranorex prevents application from loading

Posted: Fri Dec 05, 2008 6:38 pm
by taralex
I'm running a process and waiting for the application to show up.
I use a User32 API call to find the window

Code: Select all

FindWindow(String lpClassName, String lpWindowName)
But this function returns 1 immediately after the splash screen is displayed , that's why I then use Ranorex function

Code: Select all

ElementRepository.CreateAdapterForPath<Element>(Path, timeout)
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.

Posted: Tue Dec 09, 2008 3:00 pm
by Support Team
What kind of application does this happen with (Win32, WinForms, Wpf, ...)?
What kind of controls does the application use (only system provided, owner-drawn, 3rd party, ...)?

Regards,
Alex
Ranorex Support Team

Posted: Tue Dec 16, 2008 6:13 pm
by taralex
I'm sorry, I don't know how to tell winforms application from a win32. The only thing I know that the application is written in C#, and third-party and owner-drawn controls are definetely used. it also uses Microsoft office 2007 style user interface (ribbons).

Posted: Wed Dec 17, 2008 11:10 am
by Support Team
Please, inspect your application using Ranorex Spy. Click on the top element corresponding to your application (Form role) and change to the "Detail" view. In the property grid scroll down to the "General" section and post what is written under "FlavorName".

Thx!

Regards,
Alex
Ranorex Support Team