Questions tagged [quit]

156 questions
2
votes
6 answers

Exiting from C++ Console Program

I currently have a program which has the following basic structure main function -- displays menu options to user -- validates user input by passing it to a second function (input_validator) -- if user selects option 1, run function 1,…
BSchlinker
  • 3,401
  • 11
  • 51
  • 82
2
votes
0 answers

Memcached, PHP, why doesn't quit() method work?

For example I have PHP code setOption(Memcached::OPT_DISTRIBUTION, Memcached::DISTRIBUTION_CONSISTENT); $servers = array ( array ("127.0.0.1", 11211), array ("127.0.0.1",…
Molarro
  • 1,005
  • 1
  • 10
  • 24
2
votes
4 answers

Android: Ask user to either enable wifi or quit app

I'm developing a simple app that requires network connectivity to function. When the app starts, and if there is no wi-fi connection, I want to display a modal dialog to the user with two options: 1) Enable wifi or 2) Quit the application. The…
mahela007
  • 1,399
  • 4
  • 19
  • 29
2
votes
1 answer

Quitting matplotlib.pyplot animation gracefully

I have a script that plots data of some photometry apertures, and I want to plot them in an xy plot. I am using matplotlib.pyplot with python 2.5. The input data is stored in around 500 files and read. I am aware that this is not the most efficient…
Simon Walker
  • 5,523
  • 6
  • 30
  • 32
2
votes
2 answers

How to end a 2 player turn based Game Center match when player quit out of trun

I have searched about everywhere and not found an anwer for this problem: I have a 2 player game, turn based, via Game Center. After a player has done his move, he has the ability in Game Center to quit the game. In my case, this automatically means…
2
votes
2 answers

How to quit the application from the code

I am building a game using corona sdk. Inside the game, at the menu, I have an EXIT button. I want to know how I can quit the application and get to the mobile home screen or mobile menu? In other words, what should I write inside the…
Imdadul Huq Naim
  • 364
  • 5
  • 10
2
votes
1 answer

Disable Cmd-Opt-Escape on fullscreen app

I am using: if (CGCaptureAllDisplays() != kCGErrorSuccess) { To capture the display and secure my app while the user is away, but users have reported, and I have confirmed that pressing simply force quits my app. How can I stop that behavior?
JeremyLaurenson
  • 979
  • 2
  • 11
  • 23
2
votes
1 answer

Tkinter python quit/exit crash

Im making a GUI and want to add an exit button to close the window. The only problem is, when i add a button with the following code: root = Tk() Exit = Button(root, text = "Quit", command = root.quit()).grid(row = 6, column = 1) the GUI window…
2
votes
3 answers

Python: pygame.QUIT()

Just been messing around with pygame and ran into this error. CODE: import sys import pygame pygame.init() size = width, height = 600, 400 screen = pygame.display.set_mode(size) while 1: for event in pygame.event.get(): if…
Mike
  • 21
  • 1
  • 1
  • 2
2
votes
2 answers

Is it possible to quit iOS app after we do some checks

We don't want the user enter our app if the app is out-dated. Is that is possible to quit a iOS app when we do some date check BEFORE the app launch? Or it is possible to quit the application after the main view is loaded?
camelcc
  • 222
  • 4
  • 9
2
votes
2 answers

Launchd Relaunch App on Quit

I am wondering how to set Launchd to relaunch my app if the user has not chosen to choose "Quit" from the top bar. There are cases where something may happen to the app, and it may force quit, and if a preference is selected I want it to relaunch…
individualtermite
  • 3,615
  • 16
  • 49
  • 78
1
vote
2 answers

Remove “Quit” from Mac OS X app’s dock-menu

I am building a Qt application on Mac OS X using Qt-4.7. In my application there is a Dock Menu, I want to remove the “Quit” option from it. How can I achieve this? Please help. Thanks in advance.
Ketan Shah
  • 11
  • 2
1
vote
4 answers

How to quit a java program at a specific time

I have a JMS listener app, and the class QueueReceive implements MessageListener.the main function as below: public static void main(String[] args) throws Exception { InitialContext ic = getInitialContext(); QueueReceive qr = new…
Pengyi Wang
  • 123
  • 1
  • 16
1
vote
3 answers

iOS App crashes on exit, how to debug?

My app crashes when I quit it(not press home button and go to background), I guess the problem is that some objects released in viewDidUnload, are released again in dealloc, but I'm not sure. As my code has more than 10000 lines, is there any tool…
Heuristic
  • 5,087
  • 9
  • 54
  • 94
1
vote
3 answers

AS3.0 Quit the flash player

Possible Duplicate: AS3.0 Replay the whole movie (*SWF file) I made a small game in Actionscript 3.0 and flash. When the player wins the game or is 'game over' my player should have 2 options. Besides replay i want the player to be able to quit…
Tieme
  • 62,602
  • 20
  • 102
  • 156