01-16-2013 10:06 PM
I'm running my app and went to the QNX System Information perspective in the IDE.
Noticed there are three numbers, Code, Data and Stack.
Pushing and popping pages, causes the Data to increase. Even though I pop and call the "page.destroy()" method, the Data still increases.
Code and Stack remain the same.
Is this a memory leak?
01-17-2013 05:23 AM
Memory leaks are associated with the heap, so you'd be better off looking at the Malloc Information perspective.
Did the page you destroyed actually create anything, in which case you'd expect the data to go up.
Have a look here if you're worried...
01-19-2013 02:52 PM - edited 01-19-2013 02:53 PM
Thanks for the reply. I ran the app and checked our the Malloc perspective. I'm attaching a picture of what I see after normal use of the app. The purple bars (which I'm assuming) is the actual memory? Although that stays the same, the "Free" gray bars keep rising.
Am I in the clear here?
Attaching a picture. If needs moderator approval, please do so.
01-19-2013 04:36 PM
If you run through your app a number of times and the blue part stabilizes then probably yes, really hard to say for definite on a static picture. The next step is to turn on checking at exit and see if all the memory is returned.