Yeah i agree with Gongoozler. i had that happen to my work computer once (it was a pile of the best cow dung i have ever used). eventually whilst using it, the computer froze, i heard a buzz and a puff of smoke! it was a fairly spectacular failure which i was proud of (since i had been trying to get a new one off them for weeks!).
so try the power supply unit. most probably the problem.