Ranorex prevents application from loading

Bug reports.
taralex
Posts: 57
Joined: Tue Nov 04, 2008 3:50 pm
Location: Michigan
Contact:

Ranorex prevents application from loading

Post by taralex » 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

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Tue Dec 09, 2008 3:00 pm

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

taralex
Posts: 57
Joined: Tue Nov 04, 2008 3:50 pm
Location: Michigan
Contact:

Post by taralex » Tue Dec 16, 2008 6:13 pm

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).

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Wed Dec 17, 2008 11:10 am

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