char progmem stop run after few times

yulisung:
oh, that is complete code. I forgot to attach '}' at the end.

Post the complete code.