Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Problem with multiple views in UWP #48

Open
theescapers opened this issue May 22, 2017 · 0 comments
Open

Problem with multiple views in UWP #48

theescapers opened this issue May 22, 2017 · 0 comments

Comments

@theescapers
Copy link

On using the FontAwesome controls in XAML in multiple views, I am getting crashes. I looked at the code, and I believe the problem to be the use of a static FontFamily object which is getting shared across multiple dispatcher threads.

I tried replacing this shared FontFamily object with a ConcurrentDictionary with the dispatcher as key, and FontFamily as value, which means each dispatcher thread gets it's own FontFamily. This resolved my problem, and I'd be happy to commit the fix.

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

No branches or pull requests

1 participant