What MCU are you using? Maybe you are running low on memory?