it might be the ram. i ram error will bring a computer to it's knees.
it't could also be software. to check that i will recommend getting a "try linux cd" and see if something happens to the system. you also get a chance to try another OS rather then Windows. Download Ubuntu | Ubuntu
it will not delete any files from you harddisk. and as soon you restart it will be windows again.