AceTheInterview
Jobs in Pune | Work better in teams | Socialize with friends | Submit Q&A | Tell a friend
Search site for 

Top 100 Interview Questions & Answers in a convenient and easy to read book!

“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”

– Ravi, California

Read more comments...

Interview Questions And Answers RSS Feed

Answers »

  1. Submitted By: Anoop — October 27, 2006
    +3 votes
      + -

    According to the two phase constructor idiom all initialisation code that might leave , as well as any call to the fuction that might leave are put together into a constructor call ie; ConstructL() known as the two phase constructor. This is used for proper cleanup if any leave occurs.

  2. Submitted By: Nitin Sahdev — December 9, 2007
    +2 votes
      + -

    Symbian OS is designed keeping in mind the scarce memory available. So memory is very costly for any symbian application. To help prevent any memory loss, two phase constructors are used. It says that “No initialization or function call that can leave be done in the first phase of constructor till the object to be created is pushed onto the cleanup stack”, only after this has been done can any leaving stuff be handled, so that in case if a leave does occur, the cleanup stack unwinds and clears all the data, and save our precious memory.

  3. Submitted By: Poonam — April 11, 2008
    +1 votes
      + -

    One of the common causes of leaving is running out of memory, Symbian OS utilizes a pattern for construction of complex objects referred to as two-phase construction. In the first phase, an object is allocated on the heap, but the constructor must not leave itself and must not call any leaving functions. Once the object has been constructed, it can be pushed on to the cleanup stack and a second-phase constructor, normally called ConstructL(), can be called to set up the rest of the data. Often this behavior is wrapped up in a static method that will allocate and construct an object.

  4. Submitted By: Abhishek — February 4, 2009
    not yet rated
      + -

    Descriptors:
    Why descriptor is called as descriptor..

    Ans:As the descriptor are self describing itself,becouse it contets the length as well as type of descriptor..
    type example are like TDesC,TBuf,TPtr etc..

  5. Leave an Answer/Comment

    To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
    Click to hear an audio file of the anti-spam word

Our Sponsors
Our Sponsors
Contact Us | FAQ | Sitemap | Terms of Use | Privacy Policy | Tell a Friend

Copyright © 1999-2006 Jeeve Technologies LLC. All rights reserved.