Pong

August 27th 2014, Valgrind

August 27th 2014 Qt Android Activity | | August 28th 2014 Declarative Camera

Since GPS recording is a long-running task, so the app should be thoroughfully coded, stable and should not contain memory leaks to prevent the app from crashing even after a long usage time. Well, I did my best, but we should better check for sure, if there are memory leaks or other glitches contained in the app. This is easily done with Qt and valgrind.

First install valgrind:

sudo apt-get install valgrind

Then open a project with Qt Creator and go to the “Analyse” menu entry. Choose “ Valgrind Memory Analyser” from the menu and let the app run. After that a list of potential leaky code lines pops open.

Running valgrind on the ping app did not reveal a memory leak or uninitialized memory except some glitches in the Qt core libraries. Yay!

August 27th 2014 Qt Android Activity | | August 28th 2014 Declarative Camera

Options: