Questions tagged [quit]
156 questions
0
votes
1 answer
How to quit program, if fstream.open() failed in subfunction
I try to open a file in a function in a class:
void openFile(){
inputFile.open(inputFilename.c_str());
if (inputFile.is_open()){
inputFile.read(buffer, skipAtBegin);
} else {
cerr << "Cannot open file: " << inputFilename <<…

Narodon
- 3
- 1
0
votes
2 answers
saving integer when app is quit - apple iOS
right ive got this code below which will save a integer when the save button is clicked and the app is shut however i need it to do this automatically... how do I go about doing this with ios? quite new to the whole apple coding thing so any help is…

Charlotte
- 13
- 1
- 6
0
votes
1 answer
FTP error on Quit command
I'm using a ftp library that causes an error sending the quit command. It seems that the character before QUIT is not recognized. I took a look at the code but didn't find anything.
500 '?QUIT': command not understood
Does anyone know what this…

crauscher
- 6,528
- 14
- 59
- 85
0
votes
1 answer
How can you close a specific Windows comObject by a trait like location name? Powershell
I'm trying to run a script that copies several files to a group of servers. After words I run another script in another directory to verify they were moved. I can invoke the next folder that I need to go to using:
Invoke-Item c:\scripts\etc
But how…

Brandon
- 11
- 3
0
votes
3 answers
Python 2.7 Quitting
I've added in this function which makes sure the user actually wants to quit the program. It works when you actually want to quit but if you want to return to the program it just loops the statement:
def WantToQuit():
Quit = raw_input("Please…

user1655562
- 81
- 2
- 8
0
votes
1 answer
How to stop application quit or run in background till certain process finishes in iphone sdk?
in my application i am doing some synchronization of data from server.I want to stop quiting of application or running app in background till this process finishes.i.e.once this process is started user can not quit or app should not go in background…

iosdev1111
- 1,048
- 1
- 13
- 32
0
votes
1 answer
Bluetooth scanning get force quit randomly
I am new to android and java program.
I am try to write a program to remotely control switches via Android HP bluetooth.
Everything are fine only my scan for bluetooth function/activity do get random force quit. I am not sure what happen/wrong with…

M J
- 13
- 3
0
votes
3 answers
Proper way to quit a function in Python
Assume I have the following ;
def test():
while 1:
a = b
time.sleep(60)
c = b
if(c==a):
do something
then quit the function
What is the proper way to quit from a function having this…

y33t
- 649
- 4
- 14
- 23
0
votes
1 answer
Xcode 4.3.2 crash on build
I'm running Lion (10.7.4) and running Xcode 4.3.2 and when I build any application it crashes on the build. Below is the report. Any suggestions?
Application Specific Information:
ProductBuildVersion: 4E2002
UNCAUGHT EXCEPTION…

isaamac
- 51
- 2
0
votes
3 answers
How to completely quit an android apllication?
I'm facing a similar issue like this one. I'm using some static class members inlcuding singletons in my aplication. When I leave the main activity using finish() and start it again, all static members are still present. It seems not to be a good…

Andreas Linden
- 12,489
- 7
- 51
- 67
-1
votes
1 answer
tkinter halt or stop a function (def) from root window
If a function is called from the root window and the function reaches no solution or the user wants to stop the function, can this be done from the root window and if so how? The following code produces two buttons - Start starts "while" using…

brett
- 198
- 3
- 9
-1
votes
1 answer
Android - Perfect solution for quitting or terminating an application programmatically?
If my app encounters a particular error, I want to end my app without any trace of it remaining in the system. I have already seen many threads on this topic, specially these two.
Is quitting an application frowned upon?
How to quit android…

keylime
- 29
- 4
-1
votes
3 answers
Should I free allocated memory upon fatal error?
Sometimes things like library errors will not allow my program to continue further, like a call to SDL_Init going bad. Should I attempt to free as much memory as possible, or just quit? I haven't seen any small examples where people don't just quit,…

Peter Lake
- 61
- 3
-1
votes
1 answer
How to enter 'quit' to close program?
How do I instead of entering a name, enters 'quit' and it will close the program?
string name;
cout << "Enter a name: "<< " ";
std::getline (std::cin,input);
input[0] = toupper (input[0]);

V Kid
- 117
- 4
- 12
-1
votes
2 answers
Delay super.onbackpressed in android
I made a script which detects if there's internet connection:
public static boolean isOnline() {
try {
InetAddress.getByName("google.hu").isReachable(3);
return true;
} catch (UnknownHostException e){
return…

Simulator88
- 617
- 6
- 12
- 27