Bug in recognising controls by ID

Class library usage, coding and language questions.
Posts: 5
Joined: Thu Jun 14, 2007 2:25 am

Bug in recognising controls by ID

Post by vraju » Tue Nov 27, 2007 6:48 pm

I have a tabbed dialog.
Two of the tabs have a button control with the same name. Resource ID for each of these controls differs.

I use RxFormFindChildControlId to get handle of each of the controls by ID.
The call to find button control in second tab by ID too gives the handle to instance of button from first tab.

Is this a know issue?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Post by Support Team » Wed Nov 28, 2007 10:46 am

No, there is no known issue for the RxFormFindChildControlId method. And frankly speaking, by looking at the implementation of the method I can't imagine a reason for a behavior like you described.

The algorithm of the RxFormFindChildControlId method is quite simple, the only possible problem one could run into is a race condition if two threads call the method concurrently (RanorexCore methods are usually not thread-safe).

Could you, please, check once again with RanorexSpy that the ControlIDs of the buttons are different? And if so, please supply us your source code!

Ranorex Support Team