×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    24

    What is the cleanup stack?

    Hello! I´m starting with symbian c++ and I don´t know which is the use of the cleanup stack.

    Can anybody help me? Thanks

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569
    Simply put, the cleanup stack manages memory that would leak - be orphaned - in case there is an unhandled exception (a "leave", in Symbian terms).

    In other words, you push objects to the cleanup stack before you call code that might leave. If a leave takes place, the cleanup stack manages the deallocation of objects orphaned in that manner. If no leave happens, you pop what you pushed there.

    In order to get faster up to speed, consider buying a book like, e.g., the Series 60 book mentioned here: http://forum.nokia.com/books
    Last edited by petrib; 2004-11-12 at 15:47.

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    There is a number of great books about Symbian OS. Just pick one of them: http://www.symbian.com/books/index.html

Posting Permissions

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