I am having a hard time figuring out the problem. My xp will randomly shutdown.

First the desktop icons turn to icons that you would usually see with files that aren't associated with anything. Then my computer logs out and shuts down.

If anyone knows what is causing it please help. The computer in question is also the family computer.