My S40 did the same thing and turning it off and on didn't help. I've done a lot of searches and it is not an uncommon problem and the common fix seems to be $150.00. Evidently it happens to their latest model cameras too, so I nixed the idea of getting another canon.
I'm rather ticked at canon about this and fixed the problem by putting the money towards a new Sony DSC P150.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic