Skip to content
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

Device.RefreshProperties fails with ArgumentException #23

Open
camalot opened this issue May 19, 2016 · 0 comments
Open

Device.RefreshProperties fails with ArgumentException #23

camalot opened this issue May 19, 2016 · 0 comments
Labels

Comments

@camalot
Copy link
Owner

camalot commented May 19, 2016

Original Bug Filed on CodePlex

If you call Device.RefreshProperties, the code fails with an ArgumentException.

The GetPropReceiver attempts to add the properties to the Device.Properties dictionary. But if a property was already present previously, this will result the .Add operation to fail with an ArgumentException.

The best solution probably is to clear the dictionary before refreshing it. That way, stale properties are removed and the GetPropReciever will never encounter this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant