Win8 - Unhandled Exception in Windows.UI.Xaml.dll

I have strange behavior when debugging / running my subway application. During drag'n'drop the screen will be updated. I added some functionality to lock the bound properties when updating while drag'n'drop is running.

But sometimes the application crashes, but instead of throwing some kind of exception that I can debug, all I have is a window that says to open an external untied debugger

An unhandled win32 exception occurred in SOME_APP.exe [7785].

(An external debugger does not provide more information)

And the output says:

Unhandled exception in 0x05017145 (Windows.UI.Xaml.dll) in the SOME_APP.exe file: 0xC0000005: the location where the access violation was read 0x00000088.

I am working on an x64 device. Has anyone heard of such a problem?

+8
winapi windows-8 xaml unhandled-exception
source share
1 answer

If you pass objects implemented in INotifyPropertyChanged, inherited BindableBase or DependencyObject, etc. via NavigationParameter; and bind them then in the NavigatedPage (or bind them on the navigation page), you will most likely get this error. Do not pass a single object except the primitive type through the navigation parameter when navigating.

You get this exception due to non-existent reference methods. For example.

  • You have an object named Categories that inherits BindableBase.
  • You have tied this to Home.xaml.
  • The Home.xaml binding mechanism signed the PropertyChanged object of the Categories object.
  • You have moved the Category.xaml object, passing the objects as a navigation parameter.
  • You have attached the Categories object to the .xaml article.
  • When a property changes in a Category object; this property will fire the PropertyChanged event.
  • There are two subscribers to this event. Home.xaml and Article.xaml, but Home.xaml no longer exists since you are moving away from it. But your delegate has his address; therefore he is trying to execute; and crash on access error.
+11
source share

All Articles