Some files may be missing while running the computer. So you can go the safe mode by pressing F8 keys before coming to the boot screen . Go to safe mode and then restore the sysytem to the date when it was good. If it does not open then reinstall windows xp with the boot cd or repair from same cd.