ExitProcess and application.termined

Source: Internet
Author: User
Application.terminate just call PostQuitMessage. This Windows API indicates that the program is ready to be finished, and that it does not immediately abort the entire program, nor does it force the end of any other program to run. The program is likely to happen as you describe the situation application.terminate, please refer to the help of Delphi, although it is not a lot of exitprocess, it is a direct and clean End program MSDN for details, please refer to: H Ttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcekernl/html/_wcesdk_win32_ Exitprocess.asp look at the example below: [Delphi] View Plaincopy01.procedure Tform1.button1click (sender:tobject);  02.begin  .    Application.terminate;  04.end;  06.procedure Tform1.button2click (sender:tobject);  07.var  .    B:boolean;  09.begin  .    B:=false;  repeat        . Application.processmessages;        Sleep (+);    until B;  15.end;  

ExitProcess and application.termined

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.