i have emulator crashing on application exit but on target device this doesn´t happen!
I guess there is some leak but how to find it,
i´m pretty sure no memory allocated is left on heap, and also all resources handles are closed.
Can it be i forgot something in the application architecture (app-doc-appUi-view) unclosed ?
like all those base construct, add to stack etc....
please help, i can´t find it!
I had the same problem.
I would try disabling stuff one by one and see if it still works along the way.
I.e. here is what I did:
A* a = new A;
// B* b = new B; <---- comment out this line
// delete b; <----- comment out this line, too
As you can see I commented out two lines. Then see if it still crashes. If not, then you know you need to look inside class B.
Also, if you use stdlib functions, then you MUST call CloseSTDLIB() before exiting your code.
Hope this helps.
I just removed something like this.
The problem was that some of the arrays used by me, seams not to be initializated while switching between views. I've moved constructions of them to a main AppUi constructor and all got back to normal.