CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS LANGUAGES DELPHI DETAILS
    Question :
    How does Delphis exception handling work?
    Category Delphi Interview Questions
    Rating (0.3) By 18 users
    Added on 8/6/2012
    Views 124
    Rate it!
    Answers:

    The basic structure goes something like this:

    p := new(big_thing);
    try
    blah(p);
    foo(p);
    finally
    dispose(p);
    end;

    The first line allocates a big block of memory. Then, in the "try" block, we execute several statements, each of which might produce an error--or, in other words, "raise an event." If an error does occur, the rest of the "try" block will be skipped, "finally" blocks will be executed. If there are no errors, then the "finally" block will be entered when the last statement in the "try" block completes. So, either way, the big block of memory gets freed. These "try/finally" blocks will trap anything up to and including a Windows GPF.



    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    Do I have to understand object-oriented programming to use Delphi?
    View Answer
    Do I have to know a lot about the Windows API to use Delphi?
    View Answer
    How do I close a modal form? For that matter, what is the best way to close any form?
    View Answer
    Are there any tools to help me migrate my applications to Delphi?
    View Answer
    Why do I get compile errors accessing the Sender object in events?
    View Answer
    How can I manipulate data programatically?
    View Answer
    How do I write a change password function for a Paradox table?
    View Answer
    Can I use the ODBC drivers that I got with ?
    View Answer
    Does Delphi support the back-end?
    View Answer
    How do we get access to a database from Delphi?
    View Answer
    I just bought Delphi. Where are the language and library reference manuals?
    View Answer
    What technical support do we get with Delphi?
    View Answer
    What if I do not have a CD-ROM drive?
    View Answer
    Where can I get a copy of Delphi?
    View Answer
    What is the history of Delphi?
    View Answer
    Can we write multi-user database applications in regular Delphi?
    View Answer
    What is the difference between Delphi and Delphi Client/Server?
    View Answer
    How tough is it to learn Delphi?
    View Answer
    How much disk space, memory, etc, do I need to run Delphi?
    View Answer
    What operating systems does Delphi support?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Delphi Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 1.765625 Seconds