locked
How to save crash dump myself?

    Question

  • SetUnhandledExceptionFilter cannot be used in WinRT, and the store tester don't give me the crash dump, just a useless screenshot...

    I just want to log the error, because I can't work out the crash.

    Is there any way to handle unhandled native exception myself?


    • Edited by Exilerrr Tuesday, September 9, 2014 8:33 AM
    Tuesday, September 9, 2014 1:13 AM

Answers

  • Hi Exilers,

    SetUnhandledExceptionFilter is not a Windows Store App API, therefore we cannot use it in WinRT.

    I believe before trying to submit to the store, you have to pass WACK test for a self checking, if your app crashes or becomes unresponsive during certification, you’ll receive a certification report that contains additional files that you can use to identify what happened.

    Depending on the type of error that occurred, you’ll receive either:

    • A crash dump file. This file contains the most important parts of a crashed application. It’s called a crash dump file because it does not contain a full dump of the application process space. Instead, a crash dump file contains only the most critical information—such as the stack trace at the time of the crash. It also contains the list of threads, their contexts, and the memory behind their stacks.
    • An ErrorInfo file. If you wrote your app using JavaScript, HTML, and CSS, and your app crashed, it is likely because of an unhandled JavaScript exception. In these cases, you’ll receive an ErrorInfo file instead of a crash dump file. This file contains information such as the origin, location, and cause of the JavaScript exception.

    We could use Visual Studio to open the crash file: Analyzing crash reports. After your app is available in the Windows Store, you can also get information about crashes and other performance issues that occur while customers are using your app.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, September 10, 2014 5:49 AM
    Moderator