11-09-2012 01:02 PM
It would appear the Sheet class has some holes in it, leaking memory:
If you try something like:
for (int i=0;i<100;i++)
then unless the Malloc Information pane in the QNX System Information perspective, Heap used number is a complete fabrication you will observe the heap used rise considerably.
Only 1 loop is required, but its Friday so 100 loops was typed in attempting to track down memory leaks using Sheets
Solved! Go to Solution.
11-16-2012 07:22 PM
Thank you for pointing this out. This does seem like a vicious bug. Would you please report this through the developer issue tracker?
This is where all the issues are meant to be reported - it makes it possible for us to take your reports and escalate it internally as appropriate. Please include some sample code projects, snippets or logs if possible - the more information, the merrier.
11-17-2012 07:45 AM
Ok, have reported via link indicated - didnt know thats where you want bugs reported.
Not sure we can make the sample code any simpler to demonstrate the issue than the code fragment given, so posted that. Assume that if more info is needed you can email us back.
11-19-2012 11:35 AM
May we know how exactly you are testing & detecting the memory leak? Are you making use of the QNX Momentics IDE's tools for this?
That is, in the IDE: go to your launch configuration, Tools > Memory Analysis > Memory Tracing
11-19-2012 12:45 PM
as per the original posting and the bug system report post
"Then unless the Malloc Information pane in the QNX System Information perspective, Heap used number is a complete fabrication you will observe the heap used rise considerably."