It was the Blue screen of death.Just restart your PC and it will be all fine...if you still get it,go for the system restore.
You can do it by booting your system with a DVD of the windows you are using.
If the problem still persists,you have a hardware malfunction.