How to diagnose and fix blue screen crashes

Debugging tools
The debugging tools aren't quite as reliable under Windows 7, but can work according to our tests, so if you're trying to diagnose problems with the beta then they may be worth a try

There's nothing worse. You're deep in thought, working on a really important document, when suddenly the screen turns blue, a cryptic error message is displayed and your PC reboots, losing everything. Isn't Windows just great?

These kind of blue screen crashes are usually due to a buggy driver, but even Windows Vista's much improved error tracking system will rarely point you to the right file.

You'll need Windows to save your memory when crashes occur to provide information for the debugger, so it's important that Windows is configured correctly. Right-click Computer and select Properties, click Advanced System Settings > Startup and Recovery Settings > and make sure "Write debugging information" is set to "Kernel memory dump" or "Complete memory dump".

Click Start > All Programs > Debugging Tools > WinDbg, then select File > Symbol File Path. The debugging tools need to download data called "symbols" from Microsoft to help them make sense of your crash file, and you'll give them the appropriate URL here. Enter

SRV*c:\symbols*http://msdl.microsoft.com/download/symbols

in the box, say, and symbols will be downloaded from msdl.microsoft.com and stored in the c:\symbols folder. Click OK when you're done, then click File > Exit, selecting "Yes" when asked to save the workspace (which means the symbols path you've just added). And that's it, your setup work is done.

Now wait until a blue screen crash occurs, and your PC has rebooted. Then launch WinDbg again (Windows Vista users should right-click its shortcut and select Run As Administrator), click File > Open Crash Dump, and open the file \Windows\MEMORY.DMP. The program will immediately begin analysing the file.

Mike Williams
Lead security reviewer

Mike is a lead security reviewer at Future, where he stress-tests VPNs, antivirus and more to find out which services are sure to keep you safe, and which are best avoided. Mike began his career as a lead software developer in the engineering world, where his creations were used by big-name companies from Rolls Royce to British Nuclear Fuels and British Aerospace. The early PC viruses caught Mike's attention, and he developed an interest in analyzing malware, and learning the low-level technical details of how Windows and network security work under the hood.