Hi, thank you for contacting JustAnswer.com. My name is Russell. I will do my best to provide the right answer to your question.
That must be upsetting. But since the problem happens when the picture is taken and the camera does not progress beyond that, you may have a problem with the memory or the memory card.
Try taking the memory card out after turning the camera Off, and making sure the LOCK switch is not set in the direction of the point of the arrow-head next to the LOCK legend... then put the memory card back in, turn On, try taking a picture again.
Also if you can, be sure the memory card does not have all its free space used by other pictures.
Let me know how it goes, please, by using the Reply To Expert function. Thanks.