Why won't your computer boot up and stay on the Windows 7 logo?

It could be that your computer is infected with a virus, has a problem executing the loader program that starts the operating system, has a hard drive problem, or gets caught in an infinite loop.