application-shutdown Questions
7
So, after some recent changes we discovered that one of our oldest applications is sometimes crashing on shutdown. This manifests itself either in the form of "Runtime error 216" messages or in a m...
Liederman asked 3/3, 2011 at 13:11
3
Solved
Log4j2 also uses shutdown hooks to end it's services. But of course I want to log throughout the whole lifecycle of my application - shutdown included. With Log4j this was no problem. Now it seems ...
Catchword asked 1/7, 2013 at 8:26
3
Solved
I have a method which adds a shutdown hook. I need to test (via JUnit) that the code executed in the hook is called :
public void myMethod(){
Runtime.getRuntime().addShutdownHook(new Thread() {
...
Frances asked 21/5, 2013 at 13:3
4
Solved
I am currently writing a WPF application which does command-line argument handling in App.xaml.cs (which is necessary because the Startup event seems to be the recommended way of getting at those a...
Phooey asked 3/3, 2009 at 11:36
6
Solved
Is there a C++ function to turn off the computer? And since I doubt there is one (in the standard library, at least), what's the windows function that I can call from C++?
Basically, what is the c...
Eleonoraeleonore asked 11/5, 2009 at 2:53
1
Is there a way in Spring Boot to control the graceful shutdown of the app?
I know that you can have @PreDestroy methods in beans, but how can you control the ordering in which those @PreDestroy met...
Bensky asked 8/2, 2019 at 1:31
7
I have an application which starts a Remote Service in its first launched activity. Then, in another activity, the user can set the configuration of the application. Please note that this second ac...
Placket asked 25/6, 2013 at 10:5
1
Solved
So im using shutdownhook to clean up. But since its not always guaranteed that shutdownhooks thread executes, should i just push this code onto JavaFX Application Thread (method stop()), which exec...
Cowling asked 4/3, 2017 at 16:5
5
Solved
I'm currently implementing ServletContextListener and using contextDestroyed() to run cleanup tasks on my web application before it shuts down. However, I've been reading about how Runtime.addShutd...
Axletree asked 5/8, 2011 at 1:10
1
To be able to shutdown background process (implemented with Quartz.Net) I need to detect web application shutdown in AspNet5 beta8. In previous versions of Asp.Net it was possible to execute code o...
Jhansi asked 30/10, 2015 at 16:40
3
If one is not running inside a web application, what is the proper way to shutdown Log4j2? I only see a noop LogManager.shutdown()
Centrosome asked 16/9, 2014 at 19:40
3
Solved
I'm trying to properly close a MongoDB connection when the app is shut down. Here is the code:
var express = require('express')
, http = require('http')
, mongoose = require('mongoose')
, path ...
Soulsearching asked 22/8, 2013 at 13:30
0
I am writing spring boot app with ThreadPoolTaskExecutor.
Here is my Application class:
import info.gandraweb.apns.service.MessageService;
import info.gandraweb.apns.settings.AppSettings;
import o...
Tetrapody asked 16/8, 2015 at 15:21
3
Solved
Title's about it. WPF app with some WCF stuff for IPC. I call Application.Current.Shutdown() and the app continues on happily. I thought Shutdown was supposed to be unstoppable.
Perhaps because it...
Epicurus asked 8/12, 2009 at 14:38
1
Solved
Is there something in Go which do just opposite to what init() do inside a package?
Trix asked 4/6, 2015 at 9:44
3
Solved
I'm not sure which is the right way, right now I'm just calling exit(0) when a user clicks on the exit button.
Gregorio asked 17/11, 2009 at 13:32
3
When shutting down Windows 8.1, Google Chrome produces the error message "Google Chrome did not shutdown properly". How can I get Chrome to shut down without giving me that error message?
I ...
Stentorian asked 31/1, 2014 at 9:39
6
Solved
I am calling Application.Current.Shutdown() from a class that is bound to xaml windows with ObjectDataProvider, but the application is not closing. Can anyone help me to understand why? My applicat...
Kkt asked 1/5, 2009 at 7:39
3
Solved
I have a bat script which runs a java application. If I press ctrl+c on it, it the application terminates gracefully, invoking all the shutdown hooks. However, if I just close the cmd window of the...
Insult asked 14/2, 2012 at 13:23
3
Solved
I'm writing a multi-threaded c++ application for *nix operating systems. What are some best practices for terminating such an application gracefully? My instinct is that I'd want to install a signa...
Olympias asked 28/12, 2013 at 22:57
2
Solved
I am using Delphi 6 Pro. I need an event that will fire when my application is definitely shutting down but before any Forms are destroyed. I thought about trapping WM_QUIT messages in the main for...
Hampshire asked 10/10, 2011 at 23:28
6
Solved
I want to save some integers after application shut down and restore them after application opening, what is the easiest way to do this?
Katelin asked 12/7, 2011 at 21:45
2
Solved
I am checking if the windows authenticated user is a valid user for my wpf application or not.
If not, I need to shut down the application; but even after executing Application.Current.Shutdown(-1...
Venatic asked 6/7, 2011 at 19:31
1
I currently have a Console based python program running under windows. The program maintains most of its data in memory and periodically saves the data to disk, or when the user shuts the applicati...
Bolo asked 17/3, 2011 at 3:38
2
Solved
Is there any way to get notified of JVM shutting down or System.exit call before the actual shutdown? I want this, so my application will be able to make a clean exit.
I realize that such thing is ...
Makeyevka asked 30/12, 2010 at 16:22
1 Next >
© 2022 - 2024 — McMap. All rights reserved.