Before version 1.12, you had to include FlushMem in your main loop somewhere to free up discarded memory. I can't spy a FlushMem above, and would give the symptoms you describe.
But if you upgrade to the latest version (now 1.14), you no longer need to worry about FlushMem, it's all automated for you, and it should reolve your problem! The code above certainly seems to run fine for me.
But if you upgrade to the latest version (now 1.14), you no longer need to worry about FlushMem, it's all automated for you, and it should reolve your problem! The code above certainly seems to run fine for me.