A graceful termination of the application, either in response to some input or by internal logic. Usually applied for applications that need to run certain code in order to terminate in consistent way.
Questions tagged [application-shutdown]
170 questions
1
vote
3 answers
Shutdown exception handling for Win32/C++
I have a process that handles exceptions great. It calls:
_set_se_translator(exception_trans_func);…

DougN
- 4,407
- 11
- 56
- 81
1
vote
1 answer
How do you shutdown a WPF app when the "X" button is clicked
I'm new to WPF and have noticed that my application keeps running after I click the "X" button to exit the window. I've programmed GUI's before, so I know that this is common. However, when I look into the issue, whatever solutions I find do not…

Eric after dark
- 1,768
- 4
- 31
- 79
1
vote
0 answers
Clean shutdown of external application in Eclipse?
Eclipse has External Tools capability, which allows to run some external program. For example I can run MySQL server with a command
MYPATH\MySQL\MySQL Server 5.1\bin\mysqld.exe --verbose --console
Now, how to stop this server? I can define separate…

Suzan Cioc
- 29,281
- 63
- 213
- 385
1
vote
1 answer
Best way to shut down program after certain time
I am working with a console application that scans multiple image directories and re-sizes then saves images if they exceed a certain size. Once a directory is finished processing a log is then pushed to a web-service page.
This utility program…

ToddBFisher
- 11,370
- 8
- 38
- 54
1
vote
4 answers
How to restrict users to shut down apps on Android?
I have a request on developing enterprice tracking application. The application should be able to get current postion of the phone and send it to server every 5 minutes. Even if application is running on background - user can easily shut it down. I…

randomGuy
- 85
- 1
- 10
1
vote
1 answer
Event detect when shutdown or restart windows 8
I'm working on windows 8 metro style app. I want to show a save confirmation message whenever unexpected events occur such as shutdown or restart and prevent windows to do that event. However, I didn't find any handler event that fitting my need.…

Vu Chi Hieu
- 13
- 4
0
votes
1 answer
correct way to shut down an eclipse RCP application from a plugin?
I am trying to make an eclipse RCP aplication runnable from the command line.
The fitst part is okay, I can parse cmdline arguments and do what I want.
But after that I would like to shutdown the application.
What is the correct way to achieve…

Árpád Magosányi
- 1,394
- 2
- 19
- 35
0
votes
2 answers
iphone/ios adHoc distribution crashing (shut down only in case of adHoc distribution)
I've made an app using the Facebook API. I completed it, and there's no problem at all when I run my app on my device with development code signing.
So, I tried making it with adHoc distribution code signing and building was succeeded. There's also…

ROMM
- 15
- 7
0
votes
1 answer
If unhandled exception happens I need to shutdown the WPF Application?
I have a WPF Application basically the exe is a loader for the application UI and sometimes when a unhandled execption occurs the message box is shown and when I click ok it goes away,the UI vanishes etc..,the instance of the exe is still there,I…

abmv
- 7,042
- 17
- 62
- 100
0
votes
1 answer
Workaround for non-compliant JVM not sending WindowClosing events
Apple JVM on various OS X version have apparently been broken in that they do not generate the WindowClosing event when they should (for example if you close an app's main JFrame using by clicking on the close button).
(in the most recent Apple Java…

Cedric Martin
- 5,945
- 4
- 34
- 66
0
votes
0 answers
How exceptions are handled in catch block when application is shutting down?
I have an async function which performs possibly long lasting request.
private Task Request(CancellationToken ct) => { some HTTP call }
I call this function inside a try-catch block like this:
try {
await…

Alexander
- 119
- 7
0
votes
2 answers
Differentiate close event from "X" button and from OS shutdown in Windows with Qt
I have caught the closeEvent from QMainWindow in my application, in order to show a "Are you sure?" popup to the user, if he closes the app with the "X" button.
Unfortunately the popup creates problems if the application is closed from Windows…

n3mo
- 663
- 8
- 23
0
votes
1 answer
Why my python program that I converted into exe file always shutdown when result should have discovered
I created a small program that calculates the volume and content of a couple of bodies like cube and others. I have converted it into exe but when I type like some sizes of sides after it the program will shutdown, any help with that?
from telesa…

Gary Fortner
- 21
- 3
0
votes
0 answers
How to Trap Tomcat's Terminate in Java Application
When I terminate my Java Application in Eclipse, it doesn't trigger the destroy() function but the application gets terminated.
Where and how can I capture Tomcat's shutdown (or Terminate button in Eclipse) in Java so that I could run the cleaning…

AnR
- 1,809
- 3
- 26
- 45
0
votes
2 answers
Qt Application: catch trigger from batch script
With many UPS in case of power failure there is the chance to start a script to be executed before shutting down the system.
In my Qt application I would like to detect some kind of event I can trigger from a batch script and start a procedure to…

nimig
- 155
- 1
- 11