Drastic solution - reformat the hard disk and reinstall the OS. Start from scratch again.
I hope you have backed up all essential data.
but before reformatting the hard drive, check to see that RAM, video card and sound card is properly seated in its slot
my other suspicion is that it may be a power supply issue. check for virus, spyware etc
After checking all this tried to repair the installation of XP and it all didn't work then reformat the hard drive
----- John Bradley wrote: ----
My pc keeps locking up. The only way I can get it to work again is to do cold boot. This can happen when I am using an application. when the computer is Idle or the screen saver is operational