Windows phone 8.1 background task abrupt exit

I am working on Windows Phone 8.1 Background Tasks API. As you can see from all the other background task API threads here, on a stack overflow, there is no definitive answer to how long the background task takes as we cannot map 2 CPU seconds to a wall clock. This means that he can come out suddenly.

So my question is, is there a handler that we can use to make sure the application sees why the background task ended abruptly. Likely log action events and exit reasons?

+3


source to share


1 answer


I just use console.log while the background task is running, while in debug mode, to see the console and so can figure out exactly where the background task was broken. Once you know where, check your code and look for any errors. If you don't find it, you probably ran out of memory and the task was canceled.



0


source







All Articles