Questions tagged [exit]

Exiting, quitting, or halting refers to the termination of a process or program.

2585 questions
0
votes
2 answers

Return a value from a called batch file label

I have two labels in my batch file. The initial label MAIN shall stay in control, so it Calls the second label, which ends with exit /b. My script's Main label Calls the other, passing it arguments, which will be used to search strings wothin a text…
0
votes
0 answers

Excel instance not getting killed in task manager when using below code of VB script in SSIS package

Dim excelapp as new Microsoft.Office.Interop.Excel.Application Dim newWorkbook as Microsoft.Office.Interop.Excel.Workbook 'Get excelfile and remove password excelapp.Visible= False newWorkbook=excelapp.Workbooks.Open(File_Name, 0, True, 5, password,…
0
votes
1 answer

makefile: How to capture exit status in variable for use elsewhere in makefile

I understand that MAKE will exit on exit statuses other than 0, but I need to just capture the status and later on in the recipe decide to exit the make script. So I would like to: capture the exit status of a target command in a variable, do…
MarkS
  • 13
  • 2
0
votes
1 answer

Close Excel file along with the excel application it opened

I have the following python code that opens my excel file and closes it; however, the Excel app remains open. I have other python script running in the background so I only want to close the application it opened when it opened the file (not all…
slc1axj
  • 13
  • 4
0
votes
2 answers

Java/Swing app on Win10/11 not responding to TaskBar Close-All-Windows GUI command

This is an educational app for Win10/11. It hosts 2 app windows at all times the app is running (even if minimized). The app auto-saves the user's work (into XML files) during the app-Quit sequence. To Quit, the user hits the Close button on…
pbierre
  • 276
  • 1
  • 8
0
votes
1 answer

React js framer motion AnimatePresence not work on Exit

Framer motion animation doesn't work on exit, Its works fine on Initial and animate but it's not working on exit I am using framer motion =>"framer-motion": "^7.0.0", return ( <> < AnimatePresence> {props.profile && ( …
Mr A
  • 1
  • 2
0
votes
0 answers

How to fire exception prevent c# app from exit

My app exit while executing an function from ironocr library (ocr.read()) without throw any exceptions although i put the line of code in try catch block, My question is how i throw exception to see the reason of the function failed or skip reading…
0
votes
1 answer

How can I get python to count the amount of characters of a word and then continue or stop the code?

For an assignment, I need to use the "len" function to determine how many characters were entered in the "original_word". If the word is greater than or less than five characters the program needs to "exit()" How can I do this? original_word: str =…
kitkat
  • 1
0
votes
1 answer

How to call function on exit

I am running my go project using docker for containers and I would like to call a function when it exits or kill, but what's within the function is not printing: here is the code I currently have in the main function: sigChan := make(chan…
Camille Basbous
  • 299
  • 5
  • 11
  • 34
0
votes
3 answers

Is it possible to combine multiple exit functions in a single statement in c?

I was writting a function to copy contents of a file to another file, but i still don't know how to workout this. I have two functions that are involved in exiting the program incase of any errors; void exitErr(char *str, char *file1 char *file2,…
Alex
  • 31
  • 6
0
votes
2 answers

Why I can't exit code in python?

I've tried use exit(), exit(0), sys.exit()(I've import sys) and quit(), but none of them can help me to exit code. Here is my code when using exit(): from pystray import MenuItem as item import pystray from PIL import Image while True: def…
Danhui Xu
  • 69
  • 10
0
votes
0 answers

How to safely end threads and get back to main?

I'm trying to write multithread program to calculate usage of processor. The problem is that i don't know how to safely end threads. I have to end them by signal SIGTERM and I tried while(flag), phread_exit(), exit(), return(void*)0 but non of them…
ulanny
  • 1
0
votes
0 answers

Exit function in a game

I'm trying to define an exit function in the game that will allow me to exit at anytime during game play. I want to add it in my main menu but I'm a bit lost. Here is my current menu so far. def main_menu(): # Print instructions and intro …
Todd Goodwin
  • 21
  • 1
  • 4
0
votes
2 answers

is it bad practise to use "void function()" in c in terms of error handling

Function return types are useful for returning values that indicate if the function did what it was supposed to do. However if error handling is done within the function (for example fprintf(stderr, errormessage) and exit(EXIT_FAILURE)) that means…
0
votes
1 answer

C# program with access violation in iertutil.dll at exit

I have a program that is a C# wrapper for a program originally written in C/C++. The code goes through a SWIG process make the dlls accessible. Recently this code has started to crash intermittently with an access violation, but only when run in…
drfred
  • 1
1 2 3
99
100