HI, i may be misunderstood but, the aptMainLoop() return true as long as no exit command has been send, so it should be only on your main loop. If you want some hint about how to manage your main loop maybe this article can help (it's c++ but the idea is the same in c, and if you go for c++ the...