Questions tagged [terminate]

For questions regarding the termination of processes, threads, and sessions.

937 questions
-2
votes
1 answer

How do I get my program to stop once the "Q" button is pressed in AutoIt?

I currently have a program set up in AutoIt. This is what's written as the code, as well as some notes that may be useful to answering my question: ;File with data is pw.txt $fh = FileOpen("pw.txt") ;Loops 5 times, every time it loops $attempt…
-2
votes
1 answer

Why doesn't my code continue?

When I run the program it Prompts me to "Please enter the file name containing the the girls names." Then "Please enter the file name containing the the boy names." and nothing else happens but the code doesn't terminate public static int…
-2
votes
1 answer

Why main method is not convert into daemon thread in java

I am not clear with daemon thread in java,why main method cannot be convert into daemon thread and how can we know that daemon thread is terminated by jvm ?
-2
votes
4 answers

Strange behavior when attempting to obtain number of digits of unsigned long long´s maximum

I like the luxury. I wanted to invent a way for you to obtain the number of digits the unsigned long long int maximum possess. All that automatically. Here it is: #include #include #define STRINGIFY(x) #x #define…
Imobilis
  • 1,475
  • 8
  • 29
-2
votes
1 answer

VB 2008 Express program cancel close

I need help with Visual Basic 2008 Express Programs. What I did is when we click the CAPTION BAR (of Windows on top-right) CLOSE BUTTON I have set it to prompt Yes/No/Cancel Box, the code follows: Private Sub Form1_FormClosing(ByVal sender As…
Sreenikethan I
  • 319
  • 5
  • 17
-2
votes
2 answers

Why am I having to terminate my program manually?

I have a program that should launch another process and work simultaneously with it. I am using fork() and system() to accomplish this. I have code verifying that that my system() call returns, but every time I execute I have to manually end the…
art3m1sm00n
  • 389
  • 6
  • 9
  • 19
-2
votes
1 answer

How to I terminate a swing GUI programmatically?

Trying to terminate a swing gui, start the same gui and terminate it. I am using the answer to this question but it seem to only work once. The code below cycles once and hangs after printing 2. import java.awt.Toolkit; import…
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
-2
votes
1 answer

when the function will terminate

oops :: Integer -> Integer -> Integer oops a b | a == 0 = b | otherwise = oops (a - 1) (b + 1) oopser :: Integer -> Integer -> Integer oopser a b | a == b = b | otherwise = oopser (a + 1) (b - 1) For which values a and b will the above…
PeAcE
  • 89
  • 7
-3
votes
2 answers

Trying to end a while loop once a 1 is randomly generated or it loops 10 times

(I apologize for the atrocious formatting) I am attempting to make a random number generator (min = 1, max = 10) that loops until either a) a 1 is generated (serve as primary sentinel). b) loop iterates 10 times (secondary sentinel) without…
-3
votes
1 answer

Not getting expected output...code is terminating unexpectedly (hackerank stack problem)

I am struggling with this code. program is terminating unexpectedly. please help problem link: https://www.hackerrank.com/challenges/maximum-element/problem 10 1 97 2 1 20 2 1 26 1 20 2 3 1 91 if we input the above numbers in our program...it…
Awasthi007
  • 21
  • 4
-3
votes
1 answer

Can we access app when it is terminated/kill from background in ios 10

Can we access app when it is terminated/kill from background in ios 10.Actually i want to fetch lat long to hit the api when app is terminated from background.
-3
votes
1 answer

How to exit from a method manually?

I have a query which returns a DataSet. After that I check whether records are available or not. If no records available I want to display error message, exit from the process and redirect to another page. Methods available in below the exiting…
Mike
  • 1,017
  • 4
  • 19
  • 34
-3
votes
1 answer

c++ code works properly but the process ends with termination instead return 0

i wrote a simple c++ code in codeblocks and i implemented stack and graph classes for that with dynamic memory allocation. my code works properly and gives correct output but at the end it shows ***.exe has stopped working error and shows "Process…
crown
  • 21
  • 5
-3
votes
1 answer

termination of finite lists

pp :: [a] -> [a] pp list = case list of [] -> [] (x: _) -> x : (qq list) qq :: [a] -> [a] qq list = case list of [] -> [] (x: xs) -> (pp xs) ++ [x] Does the function pp terminate for finite lists? If so: how often are the…
PeAcE
  • 89
  • 7
-3
votes
3 answers

How to clean data if Application crashes or is manual terminated?

When I was implementing last activity, a doubt came. My app stores and get some values from DB and SharedPreferences, so, is it possible to clean them if my App crashes or is terminated? With terminated I mean like someone who goes in "Device…
kinghomer
  • 3,021
  • 2
  • 33
  • 56
1 2 3
62
63