Quick fix: most of the time when the camera acts funny, it's power related. Next time your camera hangs again, switch off camera, take out battery and wait for the microprocessors in the camera to clear. Put back batteries (if you can, change to a new set) and try again.
fyi, this applies for both digital and film AF cameras.