×

Discussion Board

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

    why we don't free this memory( in sample code)

    informationNote = new ( ELeave ) CAknInformationNote();
    informationNote->SetTimeout((CAknNoteDialog::TTimeout)0);
    informationNote->ExecuteLD( *textResource );

    //who free informationNote

    thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    Hi,

    just becase inside this:
    ExecuteLD
    there is done deletion of the object informationNote.

    SDK:
    ExecuteLD()
    virtual TInt ExecuteLD(TInt aResourceId);
    Description
    Loads, displays, and destroys the dialog.
    ExecuteLD D means deletion...

    Br V

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    3
    Oh. I See

    I think ExecuteLD has some code like this: delete this;...

    the object informationNote must be created by new operation

    I'm a PC programmer, a Symbian beginner

    thanks you from reply

Posting Permissions

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