Top "Exit" questions

Exiting, quitting, or halting refers to the termination of a process or program.

Process.HasExited returns true even though process is running?

I have been observing that Process.HasExited sometimes returns true even though the process is still running. My code below …

c# process exit terminate
Application.Exit() vs Application.ExitThread() vs Environment.Exit()

I am trying to figure out which I should be using. On closing my WinForm app fires of a Form …

c# .net winforms multithreading exit
Exiting a program with System.exit(0) in java

I am a little confused about how to implement System.exit(0); in my program. What I want to have happen …

java calculator exit system.exit
Prompt on exit in PyQt application

Is there any way to promt user to exit the gui-program written in Python? Something like "Are you sure you …

python pyqt exit
What can cause Java to keep running after System.exit()?

I have a Java program which is being started via ProcessBuilder from another Java program. System.exit(0) is called from …

java exit processbuilder
PowerShell Cancel Button Stop Script

I am having trouble with some PS GUI functionality. I have tried quite a few things and have been looking …

forms powershell button exit powergui
What is the correct way to programmatically quit an MFC application?

Using windows MFC C++. I have a third party app that calls a user-defined method in my CWinApp derived class. …

c++ mfc exit quit
PHP: Utilizing exit(); or die(); after header("Location: ");

I have a user login/registration system that simply uses // execute queries, set cookies, etc. here header("Location: " . getenv("HTTP_…

php exit die
Generic way to exit a .NET application

I understand that there are a few ways to exit an application, such as Application.Exit(), Application.ExitThread(), Environment.Exit(), …

c# wpf winforms console-application exit
difference between System.exit(0) and System.exit(-1)

Can any one share to me difference between System.exit(0) and System.exit(-1) it is helpful if you explain …

java exit system.exit