locked
Save dump file by code

    Question

  • hi all,

    is there some api can be used to save dump file or other types of crash information in metro app, just like MiniDumpWriteDump function in desktop?


    • Edited by Lee XL Saturday, May 12, 2012 6:32 AM
    Saturday, May 12, 2012 6:28 AM

Answers

  • Hello,

     

    As far as I know, there is no direct API to create dump file in metro.

    Only these debug API we can used in metro

    http://msdn.microsoft.com/en-us/library/windows/desktop/br205755.aspx

     

    Therefore, we need to use another way to create dumpfile.

     

    When you break in the Visual Studio debugger because of the access denied exception, go to task manager, details tab.  Find your application e.g. application1.exe, right click on it, and select create dump file.  There will be a dialog that tells you where Windows saved the file e.g. c:\users\yourname\appdata\local\temp\applicationname.dmp

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Lee XL Wednesday, May 16, 2012 6:07 AM
    Monday, May 14, 2012 10:40 AM