For questions regarding the termination of processes, threads, and sessions.
Questions tagged [terminate]
937 questions
-4
votes
1 answer
How can I terminate Python Script with particular 'if' conditions that does not affect Tkinter GUI?
I have created GUI using Tkinter and one main script to run. I have some conditions in the main script. if conditions are not satisfied I want to terminate the further execution but keep the GUI active and open. Currently I am using sys.exit() to…

Vi_py123
- 73
- 1
- 9
-4
votes
1 answer
C# - Terminate another proccess when mine still running
i was wrote some codes, when my apps still run, it will close another (example notepad) even the notepad is reopen it will close again, i've try some, but it will close when my apps startup , when my apps is running, and i open notepad, notepad wont…

oebanez
- 59
- 2
- 6
-4
votes
4 answers
iOS. Save state when user exits an application?
For example:
- (void)someFunc {
[self someFunc1];
[self someFunc2];
[self someFunc3];
}
I call someFunc. As I understand if I interrupt the application then the application doesn't guarantee that all the inner code in someFunc will be…

user2083364
- 744
- 1
- 7
- 20
-5
votes
2 answers
How to terminate a program using while loop
I have made this calculator.
Everything works fine.
However, I want to use a while loop as follows:
char cont = 'y'
while (cont == 'y') {
/code/
}
printf("Do you want to continue (y/n)")
scanf("%c", & cont)
This prints:
Do you want to continue…

Piyush
- 62
- 14
-5
votes
2 answers
My C code doesn't output anything, or end running
I'm trying to answer this question:
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
Here is my code:
#include
int isPrime(long long num)
{
for (long long k = 1; k < num;…

user3630559
- 11
- 1
-6
votes
1 answer
Terminated due timeout in hackerrank
My code is in c++
and currently trying to complete the task . link given below
difficulty level : medium
my algorithm is working fine for 18 out of 20 test cases.
other 2 are terminated due timeout.
I know what that means but now mam not getting…

Anmol
- 1
- 2
-6
votes
3 answers
How do i stop loop
I am creating a Sms spamming app that will send a user defined number of sms to a specific number.
for (i = counter; i > 0; i--) {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo,…

Maaz
- 65
- 1
- 11