locked
How to stop Windows phone 8.1 app from crashing?

    Question

  • Hi All,

    I have developed an app in Windows Phone 8.1 environment (WinRT). When i tested the app in my local testing device, it worked fine but when i hosted the app on app store, it sometimes crashes. Please help me, how do i stop my app from crashing?

    Monday, April 27, 2015 8:20 AM

All replies

  • You would need to navigate to the Dev center and look into the application crash report for the specific app to get some idea as to why the app is crashing.

    Abdulwahab Suleiman

    Tuesday, April 28, 2015 1:01 AM
    Moderator
  • Sometimes crashes or always crashes when deployed through the store?

    If you want to rely on data instead of magic then check the crash reports as Abdul suggests. If you want magic then my crystal ball says that if it always crashes the app is trying to write to its install directory.

    The install directory is writable for test deployed apps but not for apps deployed from the store.

    Tuesday, April 28, 2015 3:43 AM
    Owner
  • Use Try/Catch/Exit Try  -  with/without messaging. It does wonders for unhandled exceptions. Now, if you want to handle the exception you'll have to write conditional code either inside or outside the Try/Exit Try boundary.
    Tuesday, April 28, 2015 4:24 PM
  • it crashes sometimes and we don't know when and why because it works perfectly fine on our testing device.

    i will check the crash reports.

    Thursday, April 30, 2015 9:01 AM