How do you cleanly abort a Delphi program?

前端 未结 5 1615
温柔的废话
温柔的废话 2020-12-28 08:15

I\'ve got a program that\'s having some trouble during shutdown, raising exceptions that I can\'t trace back to their source. It appears to be timing-related and non-determ

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-28 08:49

    Halt(0) used to be the good old fashioned way of telling the program to end with immediate effect. There's probably a more Delphi-friendly way of doing that now, but I'm 95% sure halt(0) still works. :-)

提交回复
热议问题