Have you tried to remove the memory from the machine, only using 1 stick to see if this issue still exists. When you are able to login to WIndows do you see anything in the event viewer? Also, I would recommend going to the HP website and download and install the latest BIOS and firmware for your machine (after you have removed the RAM and test again).