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
0
votes
2 answers

Python restart file on windows or linux

I currently have a big long file that queries a webpage to build a dictionary. I'd like this file to restart at 4am every day as the webpage will have updated with fresh info. What do I need to put inside my while True: loop? Current…
0
votes
0 answers

Self restart self contained single file dotnet core console app

Does anyone know a way or if it's possible to have a self contained single file dotnet core 3.1 console application to self restart? I've done this before in other console applications using the code below and it's worked, however it doesn't work…
0
votes
2 answers

ThreadAbortException occurs when deleting images on a background thread. ASP.NET 4

I'm using VS2010 and ASP.NET 4. I have a single, long-running background thread running in the application, which is designed to 'cleanup' the least recently used files in a folder. It uses an EventWaitHandle to eliminate uneeded CPU usage, but…
0
votes
1 answer

Need Appium code to relanch app in between test case

I am new to automation(looking for help), My scenario is - I need to restart the app and have to check the last data inserted should be auto saved driver.closeApp is not working ( i already tried) And I don't want to use this code in app launch…
0
votes
0 answers

How to restart the spring boot application in the middle of endpoint and then start executing from there?

I want to restart the spring boot application while I am in middle of an endpoint method Lets consider this example: @RequestMapping(value = "/CreateView") public ResponseView createView() { // Here I write something to one of my…
0
votes
1 answer

How to apply changes after language change?

I use a custom settings activity for my preferences. One of them is a ListPreference for choosing app language. So far I could implement the locale preferences, but to apply changes, I restart app. The problem is, it does not work for all Android…
Mark Delphi
  • 1,376
  • 1
  • 11
  • 29
0
votes
1 answer

How restart a NodeJS app on Cloud Foundry (after scp'ing code changes)

I'm attempting to cleanup/fix an existing NodeJS app in IBM's implementation of CloudFoundry. Doing a full build between changes is killing me so I made a script to SCP changes with the cf ssh-code usage. Here is the script. I found I had to keep…
0
votes
1 answer

Android onRestart app problem

Hi everytime I install app, open it than close it with back button and than again reopen it I get the same error: 05-05 10:49:35.453: ERROR/AndroidRuntime(5118): java.lang.IllegalStateException: The content of the adapter has changed but ListView…
M.V.
  • 1,662
  • 8
  • 32
  • 55
0
votes
1 answer

Android - Already opened app re-opens after clicking on the app from Search device apps

I have an app that is being restarted after being in the background then re-opened from searching application(Searching from all apps on device screenshot attached). If i open simple from recent apps tab then it will not reopen the application. I…
Niki
  • 1,566
  • 1
  • 19
  • 36
0
votes
3 answers

Restart the codeblock with a while-loop

Problem: I would like to restart my codeblock after the error message. Console.Write("\tBitte geben Sie ihre erste Zahl ein: "); if (!double.TryParse(Console.ReadLine(), out zahl1)) Console.WriteLine("\tUngültige Eingabe. Bitte geben Sie nur…
0
votes
0 answers

The Zxing scanner does not start when the activity is restarted

I'm programing an app where the user receive the information when they scan a QR code. My problem is when I want to use the scanner again. The first time the activity starts has no problems, it works well. When I leave the activity and go back to…
Playa
  • 23
  • 4
0
votes
0 answers

I have a function that is supposed to restart my entire game, but when it loops back around, it breaks. How do I fix this within the restart function?

basically, I have a function that is supposed to go back to the init() function, where the game starts over, but for some reason, the game decides to ignore everything that was created the first time around and ignore the removeChild() parts of the…
0
votes
2 answers

restart service at boot 8.1 problems

first off thanks for the responses. :) I've been working on a number of background logging app for android for the last few months. They are for academic research. Since android 8.1 has come out, I've found a number of problems with running…
KrisG
  • 166
  • 7
0
votes
0 answers

How to run a batch file without actually deploying it with the c++ application

I have an application which needs to be restarted at some defined places (say when the application is idle for a timeout threshold). I have a batch file to execute restart commands.Now I am checking out the batch file with the application itself and…
Kethiri Sundar
  • 480
  • 2
  • 12
0
votes
0 answers

How can I implement a graceful restart an Azure Web App instance

We have memory issue with our .NET application which is often working with really big strings. I wonder if I can somehow ask an Azure web app instance stop receiving new requests for a while before I can restart the instance. I've googled around but…
Minh
  • 1
  • 1