Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor Anamika's Avatar
    Join Date
    Mar 2010
    Posts
    78
    Hi,

    After creating an object when i delete the obet which is being created..the memory space is not freed up.Can you please help me


    Code:
            SecondPage    *secondpage= new     SecondPage ;
           secondpage->show();
           delete secondpage
    ;


    Thanks and Regards
    Anamika

  2. #2
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    How do you know the memory isn't getting freed?

  3. #3
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    1 reason might be you are not deleting all allocated variables in side you class SecondPage

Similar Threads

  1. Replies: 1
    Last Post: 2010-11-30, 18:17
  2. How to manage memory in the Qt for Symbian
    By qsun06 in forum [Archived] Qt General ( Qt技术)
    Replies: 2
    Last Post: 2010-04-29, 07:08
  3. Freeing memory in HBuf array
    By Chimpanzee in forum Symbian C++
    Replies: 0
    Last Post: 2003-08-29, 02:45

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