It might be that you are having a system failure. There is an "auto restart after system failure" check box in Start -> Control Panel -> system -> advanced system settings -> Startup and recovery settings. If you uncheck this and the restarting goes away, you will have stopped the annoying symptom, but not the underlying problem.