Typical Compaq problem. This could almost be anything in your computer. I've had own experience from Compaq and it's not a happy memory.
It hung many times because something was wrong with the graphics card. So i changed to another. Later it hung because of softwares made from Compaq. And finaly the harddrive crashed. The best thing to help is to return the computer so they can have a look on it and change whats malfunctioning.