Application.Exit

Application.Exit really just asks the message loop very gently.

If you want your app to exit, the best way is to gracefully make it out of Main, and cleanly close any additional non-background threads.

If you want to be brutal… Environment.Exit or Environment.FailFast? note this is harsh – about the same as killing your own Process.

Leave a Comment