For questions regarding the termination of processes, threads, and sessions.
Questions tagged [terminate]
937 questions
-1
votes
2 answers
C++ Terminate Called 'std::length_error'?
Here is the error I get:
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
Aborted (core dumped)
I am reading a file that has about 50 lines. Do you see the issue in my code below?
using namespace…

TevinTwoTimes
- 103
- 1
- 10
-1
votes
1 answer
Terminate SSH call through scripting without any manual intervention in Windows environment
What I am trying to achieve here:
I want to automate a daily process of starting a remote SSH session through PuTTY, calling some commands taking its response into a txt file and terminate this SSH session through script.
Now as per suggestion by…

dynamicJos
- 129
- 3
- 14
-1
votes
2 answers
Terminate subprocess in python doesn't work
I want to terminate a subprocess, but it doesn't work. Here's my code:
import os
import subprocess
p = subprocess.Popen(['gnome-terminal','-e','tshark -i eth0 -w /root/Desktop/test.pcap'])
q = subprocess.Popen(['python','avtp2.py'])
if q.wait() ==…

crappidy
- 377
- 1
- 5
- 16
-1
votes
1 answer
Word: Close Select Documents
I have this VB script in Excel that creates a Word document from an Excel File.
However, whenever I re-run the same script, I get a prompt that the Word file is Open and Locked for Editing. I manually go to Task Manager and End all open Word…
-1
votes
1 answer
C program is interrupted during the execution of “system” function
I have a problem with my C code, basically I need to send email via mutt program. It must be send when an interrupt comes up from GPIO pin. My sendMail function is listed below. I realized this by using system function. Main contains loop with…

Prometeusz
- 1
- 2
-1
votes
1 answer
c program terminates while reading from file
I am trying to read data from text file using different function like fgetc(), fgets() and fscanf(). During execution program terminates after reading from fgetc().
#include
void writeFile(FILE *, char *);
void readFile(FILE *,char…

code_sniper
- 51
- 5
-1
votes
1 answer
Swift : Terminating app due to uncaught exception 'NSInvalidArgumentException', reason : unrecognized selector sent to instance 0x7fb179f12260'
I'm developing a simple app, but the problem stuck me a long long time!
I try to transit a model with segue!
The Upper one function is a UITextField as Action, however when I use it to open. Crash!
The other one can open the Model. Not being crash!…

HungCLo
- 442
- 2
- 6
- 21
-1
votes
1 answer
Responsive batch processing in Java
I like the fact that threads can share some resources but they need to release their private resources in the end. Meantime, some computations may be obsolete and you kill them, using Task Manager. I am looking for the same thing done in one JVM…

Little Alien
- 1
- 8
- 22
-1
votes
1 answer
How to terminate a program by typing a letter?
I am creating a program that allows the user to enter a number. It then adds, subtracts, divides or multiplies consecutively on the first number entered and also exits when x is pressed.
My code:
char o;
float N1,N2,res;
…

Omar Tarek AbdelHai
- 11
- 1
-1
votes
1 answer
iOS: force-closed app restarting in background
We're seeing a strange situation on our iOS app that is impacting our user experience.
When a user background's the app (by pressing the Home button), we can clearly see the app entering the background. When the user then force-closes the app (by…

Michael Lee
- 39
- 2
-1
votes
1 answer
Can not wait on shared semaphore
I have to program Readers-Writers Problem in C without using threads. I have used this to initialize shared semaphores:
/* initialize semaphores for shared processes */
resource = sem_open ("/rSem", 0644, O_CREAT | O_EXCL, 1);
sem_unlink…

01000110
- 282
- 1
- 3
- 16
-1
votes
2 answers
Finishing android app
I want to finish my app when I press a button but it terminates and the logcat throws me an error. Can you look at it? It says that a receiver is not registered, but I had.
The code for the button
stopService(new Intent(MainActivity.this,…

Manos Varesis
- 145
- 1
- 1
- 6
-1
votes
3 answers
Program is terminating without recognizing scanf
I don't know why my program terminates before confirmStats(); is called. I included everything related in main() in case the issue is ocurring somewhere else in my program.
#include
#include
#include
int str, intel,…

FatFockFrank
- 169
- 1
- 4
- 17
-1
votes
1 answer
Ackermann Termination: Root Cause Analysis
Probably not a lot of explanation needed as to what this is, and it even works exactly the way I want it to. My real problem is program termination. I've output traced my return values and the nested for loops I'm using in my main function to step…

SombraGuerrero
- 21
- 1
-1
votes
4 answers
How do I terminate a Java program if a certian condition isn't met?
Our project is to write a program that will validate credit card numbers. I am wanting to put a validation check at the beginning of the program so if the user enters a number that has less than 13 digits or more than 16 digits it displays an error…

Lord Balthazar
- 23
- 2