Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User alepe's Avatar
    Join Date
    May 2003
    Posts
    32
    Hi,
    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!

    alex

  2. #2
    Regular Contributor aehrath's Avatar
    Join Date
    Mar 2003
    Location
    San Marcos
    Posts
    190
    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:

    myprog()
    {

    A* a = new A;
    // B* b = new B; <---- comment out this line
    .
    .
    Do something
    .
    .
    delete a;
    // 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.
    Alex

  3. #3
    Registered User kaisub's Avatar
    Join Date
    Mar 2003
    Location
    UK
    Posts
    31
    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.

  4. #4
    Registered User kaiser_20's Avatar
    Join Date
    Nov 2004
    Posts
    20
    Hi Aehrath,
    Thanks for your tip I could solve a similar
    problem where my application was crashing.
    Thanks a lot again.

    kaiser

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved