Questions tagged [application-restart]

Questions based on restarting programs in various programming languages belong in this tag.

Based on certain conditions, the entire application may need to be restarted. In these cases, it is likely that the code file in question is already being run as the main() of the application. Restarting an application at this level is not always trivial.

Since different languages may handle this differently, a question tagged with this tag must also be tagged with the programming language being used

236 questions
10
votes
7 answers

How to restart an application completely?

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 activity isn't bound to the Service and I don't wish…
10
votes
4 answers

Restart an application in Eclipse

I'm developing a standalone server (not a war) using Eclipse Juno. I run it as a Java application from Eclipse. After I've made some code changes, I want to stop the currently running server and start it up again. I do this tens of times a day. The…
ᴇʟᴇvᴀтᴇ
  • 12,285
  • 4
  • 43
  • 66
8
votes
1 answer

How can my application restart itself?

How can I restart an application from within it?
Alex
  • 10,869
  • 28
  • 93
  • 165
8
votes
2 answers

How can I restart my iphone application

Possible Duplicate: Force iphone app to restart programmatically How can I restart/reopen my iphone/iPad application programmatically
7
votes
1 answer

why my iOS app restarts from first screen after coming back to foreground mode?

When in My iOS app which which is in the detail screen and I press home button which will result it in going to background mode. After inactivity of 7 around minutes, I relaunch it and it doesn't start from where I left it. It starts from the first…
7
votes
9 answers

Restart Delphi Application Programmatically

It should not be possible to run multiple instances of my application. Therefore the project source contains: CreateMutex (nil, False, PChar (ID)); if (GetLastError = ERROR_ALREADY_EXISTS) then Halt; Now I want to restart my application…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
7
votes
4 answers

Can you modify the web.config and NOT restart the ASP.NET application?

Possible Duplicate: How to prevent an ASP.NET application restarting when the web.config is modified? Was just thinking about uptime. Thanks.
John B
  • 20,062
  • 35
  • 120
  • 170
6
votes
3 answers

Sublime Text requires restart on settings changes to take effect

My Sublime Text 3 ( but also applies to ST2 as I experienced the same issue before I switched to ST3 ) requires restart for any settings changes to take effect. This happens on a Mac Mini in the office but not on my Macbook Pro ( which is pretty…
ykka
  • 71
  • 1
  • 1
  • 4
6
votes
7 answers

Can I use main() to restart my application?

I am researching a way to restart my java application by clicking a button on the GUI. I searched the web and came across main( new String[0]). I need to understand if this is an valid way to restart my application. Can someone please advise thanks.…
Adesh
  • 937
  • 4
  • 11
  • 17
5
votes
2 answers

Java JAXB - Writing XML files with restart logic

I'm creating a very large XML file (700mb +) that process large amounts of data via batch. The program serves as an interface between a extremely large sybase database and an application. I currently have the xsd schema bound to classes. I need a…
TyC
  • 792
  • 6
  • 11
  • 23
5
votes
2 answers

Reloading gunicorn worker which takes long time to load

I have a Nginx+Gunicorn+Flask application which provides some APIs using a machine learning model. The model is stored in a large file and takes long time (about one minute) to be loaded into memory. Now I want to update the model file and restart…
meirin
  • 51
  • 3
5
votes
5 answers

How to restart the application using Xamarin.Forms

If I manage a session (any concept of a session is suitable) in my app, and I deem that the session has expired, for whatever reason, how do I programmatically restart the application, universally for iOS, Android, WinPhone?
5
votes
1 answer

how to restart my own application in VC++

Am working on VC++ application. Figuring out how to restart my own application Can somebody show some example
user1465461
  • 397
  • 2
  • 6
  • 17
5
votes
1 answer

How to restart a chrome extension automatically?

I have a chrome extension that I built that leaks memory. I am working on fixing the memory leak, but in the mean time a few friends are already using it. As a temporary measure I want to include a patch which would restart the extension…
jason
  • 3,471
  • 6
  • 30
  • 43
4
votes
1 answer

How to find out why an ASP.NET web application is being restarted

In my web application Application.End is called after every request for some reason and the application is restarted. When I set a breakpoint in Applicaion_End I don't get a useful stack trace. Furthermore, there are no entries in Event Viewer.…
Stefan Paul Noack
  • 3,654
  • 1
  • 27
  • 38
1
2
3
15 16