Logging Stop and/or Fatal Errors

Goto  Control Panel/System/Startup and Recovery

You can now configure Windows to do the following when a severe error (called a Stop error or Fatal system error) occurs:

The dump of system memory to a log file can be valuable for debugging the cause of the Stop error. If you contact technical support about the error, they might ask for the log file. Note that Windows writes the log file to the same file name (Memory.dmp, by default) each time a Stop error occurs. To preserve log files, you should rename the log file with a unique name after the computer restarts.