Recently had a similar problem with my Touchsmart Tx2z tablet pc. By going through the suggested diagnostics from HP's website I figured out that one of my memory slots is bad )<:
Check the manufacturer website for diagnostics based on the symptoms. Good luck.