×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    5

    ListBox Fails On app exit

    I am trying to create a listbox which fails on exit it displays fine but the emulator crashes on exit can u tell me what is wrong with the destructor
    CMyCallGuiContainer::~CMyCallGuiContainer()
    {
    delete iLabel;
    delete iToDoLabel;

    iAvkonAppUi->RemoveFromStack( iListBox);
    delete itemList;
    delete iconList;
    delete iListBox;



    }
    Last edited by Salvesh; 2005-02-01 at 20:37.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    it is propably the iconlist that you are deleting in the destructor. It is most propably deleted by the listbox, so when you try to delete it again, you will get memory voilation error in emulator, and Kern-Exec 3 in real device.

    try just commenting the iconlist deletion away.

    yucca

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    5

    Thanks

    Thanks Yucca that actually did work.
    Sometimes i guess we programmers pay a price for being extra cautious, this was certainly one of those cases
    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×