Questions tagged [quit]

156 questions
1
vote
2 answers

Windows Phone 7 XNA game quits on load, no error messages

I'm trying to get a Windows Phone 7 XNA game to run in the emulator, however it simply quits after calling the Game.Initialize function. The only output it gives is: A first chance exception of type 'System.NotSupportedException' occurred in …
meds
  • 21,699
  • 37
  • 163
  • 314
1
vote
1 answer

Force application to front

The question I'm about to ask may seem dangerous for the user, so here's the story before the question: I'm working in a compagny that tries to sell Galaxy Tabs to schools (children under 10). So, I've been asked to develop an application that…
Setsuki
  • 255
  • 2
  • 11
1
vote
4 answers

Quiting a PHP script within another PHP page

I'm trying to implement caching for a PHP script I'm writing, but I keep running into the following problem. I want the script to be included in other PHP pages, but when I try to pass the cached file and exit the embedded script it exits both the…
PHLAK
  • 22,023
  • 18
  • 49
  • 52
1
vote
2 answers

applicationWillTerminate and the dock but wanting to cancel this action

I have some separate threads going in my application that need to be torn down correctly. IF the user selects the quit menu item in file menu I throw up an error that says... please stop the other things your are doing before quitting. However if…
theprojectabot
  • 1,163
  • 12
  • 19
1
vote
2 answers

why wont pygame quit?

The game freezes instead of quitting. I have to exit from Idle. Any ideas on what to do? def quit_game(): for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() quit_game()
pewpew
  • 700
  • 2
  • 9
  • 32
1
vote
2 answers

PHPMailer cannot send email, client closes connection?

Well, I am trying to send a email using the smtp server from my host(hosting2go), and according to one of their FAQ's I have to authenticate using pop3 first, it has to retrieve mails before I can attempt to connect to the smtp server and thats what…
1
vote
1 answer

PHP foreach Array list for each record

When running a foreach loop for an array embedded in multiple records, I can't get the array to echo just one array set per record. Instead, it's displaying all the array records, for each instance, in every result. I'm reading a CSV file, and…
Tom
  • 11
  • 1
  • 4
1
vote
0 answers

How Do I Force an iOS App Into Resign Active?

I've been looking all over for this, and have a nasty feeling the answer is "You can't." I have an app that establishes a wireless connection to a device as soon as it becomes active. It's a super-simple, one-window app that should only show a…
Chris Marshall
  • 4,910
  • 8
  • 47
  • 72
1
vote
1 answer

How to stop the activity recognition after the quitting the application?

I am working on a user activity tracking application. I need to track the user activity even the app is background or quits. I have started the user activity tracking and quitting the app. After some point of time I want to stop the user activity…
M Vignesh
  • 1,586
  • 2
  • 18
  • 55
1
vote
0 answers

Calling r.("quit()") from robjects closes the python process as well

I'm using robjects to execute an R script from python. When R finishes it leaves behind it many temporary files. I can't modify the R script but I also don't see there any reference to tempfile() so I assume it is coming from a library the R script…
user1942586
  • 153
  • 1
  • 3
  • 16
1
vote
5 answers

How do I fix my Java code so that it ends when a user types "quit"?

So I have been working on this simple calculator in Java for a while now, and I want the program to end when a user types "quit" in the scanner. I tried to implement this feature as an 'If' statement near the end of my main class in the following…
Ahad Sheriff
  • 1,829
  • 8
  • 24
  • 46
1
vote
1 answer

Invalidating session before iPhone application quits

I would like to tell the server to invalidate an ongoing session when the user quits the iPhone application. In the app delegate, I send a request to the server in the (void)applicationWillTerminate:(UIApplication *)application method. I am not…
user244129
  • 642
  • 1
  • 8
  • 15
1
vote
1 answer

How to hide/disable close button or at least catch/override built-in quit() function? (Kivy)

I need to do some actions before quit (save settings, etc.), I do it with Button widgets, but if I press on close button of the window, it just closes. Maybe I should handle App's on_close() event somehow? Then I don't know how to send data from…
Necronomicron
  • 1,150
  • 4
  • 24
  • 47
1
vote
1 answer

Is there a command to stop a program and still save the data?

I am working on an experiment that I talk data and MatLab graphs the data and saves it in a video file. For right now, I use a tic/toc function and while loop to control the duration for Matlab to record the data for the experiment. Sometimes,…
1
vote
2 answers

How to end main function from a custom library?

I use a list of different python scripts for various functions. To help facilitate this, I've organized all of my reusable functions into custom libraries. However, I found that many of these functions will error out for strange reasons, some known…
Sean Snyder
  • 624
  • 6
  • 3