Ranorex

Bug in recognising controls by ID

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexCore
View previous topic :: View next topic  
Author Message
vraju



Joined: 14 Jun 2007
Posts: 5

PostPosted: Tue Nov 27, 2007 7:48 pm    Post subject: Bug in recognising controls by ID
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?
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Wed Nov 28, 2007 11:46 am    Post subject:
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!

Regards,
Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexCore All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum