UWP App crashes for the first time and not every time Exception thrown at 0x06515AE7 (Windows.UI.Xaml.dll)

-2

mine is huge application so that i cannot share the code of the application i'm getting error while doing clicking or any events in the page i'm not able to trace the exception in any case while adding all exceptions in settings and enabled native debugging getting error as "Exception thrown at 0x06515AE7 (Windows.UI.Xaml.dll) in MingleChat.exe: 0xC0000005: Access violation reading location 0x00000000.

An unhandled win32 exception of vs 2017"

uwp
windows-8.1
uwp-xaml
xamarin.uwp
windows-8.1-universal

2 Answers

0

@Harish,

Does any of your Xaml markup include the following setting?

FocusVisualPrimaryBrush="{x:Null}"

or perhaps any of the other FocusVisual properties being set to null like

FocusVisualSecondaryBrush="{x:Null}"

We were getting a very similar error message and observing a similar crashing behavior with our UWP application as mentioned in this post.

And that Null setting was the culprit in our case.

answered on Stack Overflow Feb 15, 2019 by HoloSheep
0

Downgrade your min sdk version to 15xxx.

answered on Stack Overflow Nov 18, 2020 by medex

User contributions licensed under CC BY-SA 3.0