Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
231 views

I am running the same python.exe, from the same working directory, in VS Code's terminal running cmd.exe, and in Windows Terminal running cmd.exe. For some reason, these two behave differently. In ...
bers's user avatar
  • 6,309
1 vote
1 answer
86 views

I am debugging a workflow, and cannot quickly find a way to execute view (to print the diagnostic output) and then exit (quit) the workflow. The actual workflow is complex, and I reduced it to a ...
Timur Shtatland's user avatar
0 votes
1 answer
182 views

I am debugging a workflow, and cannot quickly find a way to execute view (to print the diagnostic output) and then exit (quit) the workflow. If I use System.exit(0) or exit(0) in the code snippet ...
Timur Shtatland's user avatar
2 votes
1 answer
159 views

I'm encountering a crash at exit(0) in a simple Perl script using DBI with DBD::Oracle, specifically when running on newer versions of glibc. Here’s a minimal script to reproduce the issue: use DBI; ...
tourist's user avatar
  • 614
1 vote
1 answer
255 views

I'm running a Perl script where everything appears to execute correctly, but it crashes immediately after calling exit 0;. Whether I run the script normally or with perl -d, the crash still happens. ...
tourist's user avatar
  • 614
0 votes
0 answers
22 views

I'm trying to just render a window using auto window = RenderWindow(); from SFML but the compiler shows exit code -1073741515 (0xC0000135) over and over again. What causes this specific exit code? I'm ...
Zofia's user avatar
  • 1
0 votes
1 answer
74 views

I am using Spyder 6 console to invoke a Python script via the runfile command. After a recent Anaconda update, I found that sys.exit() no longer exits the script quietly. It prints: An exception has ...
user2153235's user avatar
  • 1,265
0 votes
0 answers
32 views

Using: go version go1.22.2 linux/amd64 on Ubuntu 24.04 some Go code: svc.Rc = 0 fmt.Println("my rc="+strconv.Itoa(svc.Rc)) os.Exit(svc.Rc) go run . ; echo $? # my rc=0 <== correct as ...
JohnA's user avatar
  • 899
2 votes
2 answers
185 views

I’m messing with PowerShell scripting and wanted to know if this was possible. I know when you use try / finally the code in the finally block will execute even when Ctrl+C is typed. However, how can ...
Ryan Cruz's user avatar
0 votes
0 answers
74 views

I'm having troules with Pydroid3: When a script is ending or an exception is thrown, Pydroid is halting and I have to force it to end by closing the app. Then anew opening the app, opening the script ...
lesenv's user avatar
  • 1
3 votes
0 answers
81 views

I am working on a C program that simulates a hair salon, and I'm facing an issue with terminating the main process from the simulation_timer_thread. The only way I can successfully exit the main ...
Bartłomiej's user avatar
0 votes
1 answer
56 views

I'm learnig python and doing some simple programming exercises (Python 3.13.2 and VScode 1.97.1) Here, while a counter runs in the while loop, I'm listening for any key press in the background. When &...
BEsmart's user avatar
  • 67
3 votes
1 answer
70 views

Question: In R or RStudio, if a user aborts an ongoing calculation (by clicking the stop sign or pressing esc), on.exit is not called. Is there a way such that if the user presses esc, a certain ...
Said's user avatar
  • 33
0 votes
1 answer
84 views

I want a Game of Life program in the console. The parameters to initialize the 'field' can be changed in the mainMenu(). When all is done, it returns 1, and the drawing begins. When we return from ...
c51p152's user avatar
0 votes
1 answer
57 views

I am trying to add a hotkey to my python program so that I can quit out of it without having to click on the anaconda prompt and do ctrl+c. From another topic I see that sys.exit() merely raises an ...
elscan's user avatar
  • 123
1 vote
1 answer
122 views

I currently have a file called shellScript.sh that has the following two lines node firstJavascriptFile.js node secondJavascriptFile.js The contents of firstJavascriptFile.js are as follows: console....
George Ji's user avatar
1 vote
1 answer
122 views

I have a problem with a shared library's global object getting destroyed before it is used. I do not know all details nor do I have control over an application that uses the library but my assumption ...
user77777777's user avatar
1 vote
1 answer
77 views

I'm trying to track down an error about exiting while a file is open. In doing so, I interactively (not in an IDE, just into Terminal after running Python) entered the following code snippet to ...
Kim Silverman's user avatar
1 vote
2 answers
67 views

I have a script.command file with a shell script inside, so that I can double click it to execute in a new terminal window. When it finishes the script it automatically closes regardless of the exit ...
Masuk Pavel's user avatar
1 vote
0 answers
138 views

I have already exhaustively googled this topic, and the answer is "don't do it". However I am kind of stuck between a rock and a hard place, so I need to thoroughly explore this topic before ...
Mr. Developerdude's user avatar
2 votes
0 answers
569 views

I am running a python (v3.9.16) application from a main thread while a separate worker thread runs an asyncio loop that makes SQL queries to a database (using aioodbc v0.5.0). The main thread ...
dfhoag's user avatar
  • 43
1 vote
2 answers
132 views

I was trying to figure out the differences between terminate(), exit() and abort(), and Microsoft's C++ program termination documentation came up in my Google search that compares exit vs abort vs ...
heretoinfinity's user avatar
2 votes
0 answers
121 views

I want to stop the execution of a Python (3.12) script with a behaviour that is identical to the script running to completion in ideally all contexts, such as: run with python script.py; run with ...
Nikola Benes's user avatar
  • 2,801
0 votes
0 answers
39 views

I'm using a library called Excel2Image in order to take a sheet range in excel and save it as a video. This library uses win32com in order to get an excel application. Inside of my main program, ...
Treyara's user avatar
  • 47
0 votes
1 answer
127 views

The program I'm working with requires a secondary executable to run (for asset compression). For error handling reasons, I need the return value of the child process. According to the system man page, ...
Zenais's user avatar
  • 146
0 votes
1 answer
535 views

Whenever I try to run an app, I get the error code below. There is absolutely no solution for this online, and it is getting really frustrating. FAILURE: Build failed with an exception. Where: Script '...
Joe Jills - learning Flutter's user avatar
0 votes
1 answer
36 views

enter image description here The sign error. I have no idea what error I am going through. I have tried it for several times, even reinstalled visual studio for Mac twice. But the problem wasn't ...
황준서's user avatar
0 votes
1 answer
136 views

Appologies, this might be a simple thing, but I can't get it working!! I have a much bigger script for the demo purposes I have simplified this. Basically, what I want is that PowerShell to continue ...
user1829319's user avatar
0 votes
1 answer
41 views

Code: import subprocess from PIL import Image import colorsys import numpy as np for t in range(1,49): in_file_name=f"Pf{t:02d}.bin" subprocess.run(f"sz3 -f -i /home/jzz/...
Zizhe Jian's user avatar
0 votes
1 answer
197 views

my C# code invokes PowerShell scripts to do somthing. However after the script is executed there is always a "powershell.exe" process existing on the system's Task Manager list. I want to ...
John Z's user avatar
  • 11
1 vote
1 answer
199 views

I'd like to write a function that closes all open applications before quitting. This is to make sure I haven't forgotten to save a modified file. If I use the Super+Shift+q shortcut, awesome forces ...
user24473340's user avatar
-1 votes
2 answers
140 views

This program's purpose is basically to get a character from a user and repeat it. There were a few things we had to do other than that in the program but that was the gist of it. #include <iostream&...
tanner phillips's user avatar
1 vote
0 answers
62 views

I want my node.js app close on git bash terminal window close ( without pressing ctrl+c ) I tried SIGTERM SIGINT SIGHUP SIGWHATEVER, it doesn't work, the app won't exit, I get 'the port blabla is ...
Eugene1111's user avatar
1 vote
0 answers
231 views

I'm trying to develop a full-stack app with nodejs, react-native, expo and docker and when I try to make docker-compose down or docker-compose stop I get as status Exited(137) in frontend and backend ...
Martinikoh's user avatar
1 vote
0 answers
61 views

I'm trying to learn to use this Python package for patent searching: https://pypi.org/project/patent-client/ https://patent-client.readthedocs.io/en/latest I'm following this example: https://patent-...
Hubert B's user avatar
0 votes
1 answer
40 views

I have an excel countdown macro that works fine, but I need to be able to exit the routine if it's called a second time before the first version runs to zero... right now, when the user creates a ...
D. Robertson's user avatar
1 vote
1 answer
65 views

So I have a program that calls execvp() as seen below void ext_com(char* buffer){ char **command; pid_t child_pid; command = get_input(buffer); child_pid = fork(); if(child_pid<...
shinny.dogma's user avatar
-1 votes
1 answer
124 views

Here is my program: #include <fstream> int main() { std::ofstream fout("data.dat", std::ios::binary); for (int isam=0; isam<500; isam++) fout.write((char*) &isam, 4); ...
Steve Lowe's user avatar
1 vote
1 answer
308 views

late int selectedIndex; DateTime? currentPress; Widget build(BuildContext context) { return PopScope( canPop: false, onPopInvoked: (didPop) async { if(selectedIndex != 0){ ...
Karthikn's user avatar
0 votes
1 answer
152 views

this question was on last year's exam and i have never seen anything like this in my life. I know what fork does, what it returns, but this... i can't even compile this what is displayed when running ...
Catalin Ionita's user avatar
0 votes
1 answer
193 views

import { motion, AnimatePresence } from 'framer-motion'; <AnimatePresence> {isOpen && ( <motion.div key="modal" ref={sheetRef} initial={{ y: '100%' }} ...
Vishal Tanna's user avatar
  • 1,345
1 vote
1 answer
50 views

I have a file called table_builders.py where I have defined multiple classes. Inside another script, I am importing them in a loop. The classes that I am trying to import are listed in builders_list. ...
Graham B's user avatar
1 vote
1 answer
269 views

I have an express server on localhost:3000. The problem is whenever I restart the server I get: EADDRINUSE. So the server will run on port 3001. I have solved this problem by manually killing PID ...
Joaquin Rodriguez's user avatar
1 vote
1 answer
323 views

"I am stuck and cannot escape." - jclancy I've been using Dyalog workspaces to play with APL, but wanted to try it out on the CLI, so I downloaded GNU APL from homebrew to check it out. ...
Aaron's user avatar
  • 7,145
0 votes
0 answers
29 views

My intension is to raise an error and stop the Python script when certain condition met. Here is the relevant code snippet. def my_func(some arguments): # some code if X.abs().max().max() > ...
cat's user avatar
  • 95
0 votes
1 answer
166 views

enter image description here How we can connect these two flowcharts together? in order to complete the main flowchart we want to insert the flowchart which starts by Enter and finishes by Exit. we ...
SalimiNasab's user avatar
6 votes
3 answers
6k views

AFAIK, the exit code numbers may vary depending on the application and the conventions adopted in a project. However, I wonder if there is an exit code standard list for C/C++ projects.
user avatar
2 votes
0 answers
200 views

I am trying to have django asgi app exit when the database connection fails. Normal behaviour seems to be that the app and its endpoint happily keep running and are accessible even though the database ...
Niels's user avatar
  • 605
0 votes
1 answer
20 views

I have written the code below. its very basic. I want the exit values (in live and backtesting) as per the moving average value on that particular bar. //@version=4 strategy("My Strategy", ...
Kaushal M Mehta's user avatar
0 votes
1 answer
47 views

I have two functions and when I call the second one after the first, the two functions run at the same time . I want to exit a function when another is running. I call each function from a menuitem. I ...
khalidel's user avatar

1
2 3 4 5
57