Skip to content

Closing the File [.exe] ForceFully #152

Answered by dennisvang
ritishbhardwaj asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ritishbhardwaj, this is not an error.

The application is already closing at this point, because sys.exit() has been called:

It's just that the batch script, which runs in a separate process, has to wait for the application process to finish closing. Sometimes this takes a bit longer, causing the copy to fail, so what you're seeing is a simple retry mechanism with a short timeout.

Checking if the app's process has stopped, properly and reliably, can become quite complicated, so, instead, we just retry if the copy fails.

If you want to change this, you go all out by specifying a custom batch tem…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ritishbhardwaj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants