xbmc/xbmc — pull request #813 by CrystalP (2012-03-26 00:11:04+00:00)
Title: Windows: Create minidumps for threads terminated by exceptions

Hopefully with this and build symbol files it will be easier to figure out what crashed XBMC or a thread on a user's computer.

The PR will create the dumps in the same directory as the debug logs, with file names like:
XBMC majorminortag gitrev datetime.dmp

In case the exception happens before XBMC directories settings were initialized (unlikely), I'm not sure what's the best location for the dump. I thought of a few possibilities:
- in the same directory as the exe. Maybe a problem for restricted users? It's what the PR implements at the moment
- in the root of a user's Windows profile
- in Windows temp directory. Same as the task manager would do.

What do you think, keeping in mind there are regular and portable installs?