Saturday, 24 August 2013

Windows Phone 8 app randomly crashes with error code -2147220717 (0x80040313)

Windows Phone 8 app randomly crashes with error code -2147220717 (0x80040313)

I am currently developing a stopwatch and timer app in C#/XAML for Windows
Phone 8. While using my app on my phone, I found that it randomly closed
out/crashed and that too at different points of use (i.e. I wasn't doing
the same thing each time it closed out). While debugging, I found that my
app closed out with the following error code in my output window:
"The program '[1100] TaskHost.exe' has exited with code -2147220717
(0x80040313)."
I am very confused as to why this is happening. I tried creating an
entirely new solution and moving my code over and I've still been getting
the same issue. I have tried using the app on multiple different devices,
and the same thing happens (even in the Emulator). Sometimes the app
crashes after 5 minutes of use, sometimes it crashes after 30 minutes of
use, it's very unpredictable which makes it very hard to find the root of
the problem. My app uses the XNA Framework to play an audio sound and the
Coding4Fun Toolkit for a TimeSpanPicker control, and besides that there
isn't much else that's particularly notable about my app. I have tried
removing the playing of the audio file and removing references to the XNA
Framework, and the problem persists.
Any ideas on what the problem could be?
Thanks in advance!

No comments:

Post a Comment