Did this happen after a new software or driver was installed?
In that case uninstall it while in Safe mode.
Or when it boots up, press F8 and try selecting the option to boot from "Last known Good Configuration"
In safe mode go to Control panel/ system/ system properties/ advanced/startup and recovery. Uncheck the box that says automatically restart after sytem failure. instead of rebooting all the time it will now stop on a screen giving some details of what the fault is and give an indication of what to do to fix it
Ive tried turning off the restart after system failure but it didnt pop up with the code or even the blue screen...just still kept restarting. Buwish I will check out the link and see what happens there. Thanks everybody for your input