Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I would attach WinDbg when the program is running and do a minidump when it debugbreaks on a crash or exception:</p> <pre><code>.dump /ma c:\mem.dmp // c:\mem.dmp could be any other location you desire </code></pre> <p>I would enable gflags for your app, either from the command line of within WinDbg:</p> <pre><code>!gflag +ust </code></pre> <p>remember to remove this flag after!!</p> <p>Then you could run an automated exepction analysis:</p> <pre><code>!analyze -v </code></pre> <p>this may tell you what it thinks caused the crash, you can dump the call stacks of all threads:</p> <pre><code>~* kb </code></pre> <p>and if see anything suspicuous you can switch thread and inspect further:</p> <pre><code>~x s </code></pre> <p>You can inspect the exception context record:</p> <pre><code>.ecxr </code></pre> <p>there is a good link on how to recover the call stack from a catch block:http://blogs.msdn.com/b/slavao/archive/2005/01/30/363428.aspx and also this: <a href="http://blogs.msdn.com/b/jmstall/archive/2005/01/18/355697.aspx" rel="nofollow">http://blogs.msdn.com/b/jmstall/archive/2005/01/18/355697.aspx</a></p> <p>the main thing here is that with windbg attached you should be able to inspect the state of all the threads and the call stacks, you can also open the minidump in visual studio: <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ee416349%28v=vs.85%29.aspx#Analysis_of_a_minidump" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/ee416349%28v=vs.85%29.aspx#Analysis_of_a_minidump</a> if you prefer visual studio for navigating, you can open the same dump in windbg to use its tools for analysis and visual studio for navigating the code. Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload