If you are having a bluescreen... Your having a driver problem... Possible cause: you installed a program that is having a driver sharing violation... Try to restore your system... run it on safe mode try to look for a program that you installed earllier then run system restore before the time you installed the program...
If it shutsdown without any warning, you have a possible memory or board problem, try to replace the memory or board...