-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automation.AddAutomationPropertyChangedEventHandler calls freezes app #6
Comments
Hey vforvoid, I tried to replicate the issue in a small console application and I am able to call the method without the freezing you describe. Are you trying to subscribe to a specific AutomationElement? What TreeScope are you providing? This is the code I compiled to test that method. If you are subscribing to a specific element that is giving you problems, try using this test app to subscribe to the element in question in place of the
|
Hey Tankatronic. Many thanks for taking a look at it! Seems like your code example works just fine. I've tried it on a couple of different applications elements without any problems. I made a project last week using outdated .NET wrapper for UIA, going to try to replace it with your wrapper in a day or two to see what happens and update you with results. |
Ok, sorry for making you wait. I think it is some threading probmels. Check out this modified snippet:
|
Hey vforvoid, I will run your test to see if I experience the same issue the first monday of October. I am currently out of the country right now visiting one of our offices and won't have time until I return. Just wanted to let you know I won't leave you hanging. |
Good day. I wonder if you have any time now to take a look at this? |
Did one of you want contributor rights to this project, I don't have time to maintain at the moment and more than happy to add others |
Thanks, I'm quite busy with my current project atm, but if I will end up changing UIAComWrapper's code, I will create pull request for sure. |
I am currently on vacation but will get back to you in a couple weeks when On Wed, Oct 28, 2015, 3:25 AM vforvoid [email protected] wrote:
|
@vforvoid I've tried your code and it does not freeze for me. At least I see a lot of "Subscribed to cahnges" messages in the output... |
Hey, thanks, I'm out due to new year, will try to check it as soon as I get
|
It seems like calling this method makes my application freeze.
It is happening on Factory.AddPropertyChangedEventHandler call
https://github.com/JakeGinnivan/UIAComWrapper/blob/master/UIAComWrapper/Automation.cs#L127
Any ideas why is it happening and how I can fix it?
Thanks in advance.
The text was updated successfully, but these errors were encountered: