Questions tagged [quit]

156 questions
0
votes
2 answers

Java - Handle Program Termination

I have a server - client pair written in java and I would like to quit one application if the other one is quit. How is this done? I would also like to know how to make the program do a sequence of commands (e.g. close sockets etc.) if the user…
Samantha Catania
  • 5,116
  • 5
  • 39
  • 69
0
votes
2 answers

PHP script stops on str_getcsv with no error

Newbie here with a frustrating, but probably simple question. I am trying to write a script that will get the last line of a .csv with 2 columns. I only need the value in the second column to do a calculation. I have been trying to use…
0
votes
1 answer

How do I make my iOS app reset when the user clicks the home button?

I have an animation based timer app that does not reset when I exit the app. I need to click the home button, then quit the app and re-launch it to get the timer to reset. How do I tell the app to reset when the home button is pushed?
0
votes
1 answer

NSAlertPanel not working when Application is quitting

Im trying to allow the user to decide whether to quit the application or not and Ive been trying to implement it using this: - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { int answer = NSRunAlertPanel(@"Quit",…
0
votes
0 answers

Force quit when I push back button

I'm having difficulty debugging a force quit issue. In the code below you can see that I navigate to a new activity using Intent. However, when I push the back button on the android device, I get a force quit error. Is there something that I'm…
locoboy
  • 38,002
  • 70
  • 184
  • 260
0
votes
2 answers

Recently created an app in Xcode and it runs fine on my computer. Sent the .app to a friend, he cannot run it

Any suggestions as to why the app will launch and quickly disappear from the dock? It's a very small app with about 80 lines of code and no outside API's, libraries, or dependencies. A simple countdown app created in about an hour.
Michael
  • 161
  • 3
  • 9
0
votes
2 answers

python console intrupt? and cross platform threads

I want my app to loop in python but have a way to quit. Is there a way to get input from the console, scan it for letter q and quick when my app is ready to quit? in C i would just create a pthread that waits for cin, scans, locks a global quit var,…
user34537
0
votes
2 answers

PyQt: How can I quit a QDialog?

I've build a QDialog Widget. My problem is, I can't quit the QDialog. If I press one of the buttons, then the QDialog is only set to "hide". Here is a little part of the code. It is executable. I don't know what I'm doing wrong. Maybe one of you…
user427305
  • 131
  • 1
  • 6
  • 12
0
votes
1 answer

Clean up QThread after calling quit()

I have a problem. If I call Abort(), run function will return without complexMath instance have enough time to do clean up. What i want is, after calling Abort(), complexMath instance have enough time to shutdown itself, clearing all pending signal…
Rozi
  • 65
  • 5
0
votes
2 answers

Xcode quit unexpectedly when opening my project

I tried to delete the 2 files in the projects package content and if I do that my project works but when I click on any file it quits again log: Process: Xcode [515] Path: …
Omar Shiltawi
  • 151
  • 1
  • 1
  • 5
0
votes
1 answer

Closing wxpython application hangs gui

I this application which has a long running task via ssh, which gets the stdout then prints this to a wx.TextCtrl, all this works fine. The problem I have is being able to quit the application, currently when I do the gui hangs. The long sunning ssh…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
2 answers

Why "quit" command doesn't work?

I've been experiencing trouble with "quit" command in my Python (3.4.3, Windows 64 bits) and currently isn't working at all. It always fail and, whenever I try to use it along with tkinter module, my code freezes, my Python crashes and I have to…
cortmore
  • 19
  • 3
0
votes
1 answer

Quit application on MenuStripItem press

I'm pretty new to C#, and I ran today into a bug. I'm making a Windows Form Application in Visual C# in Visual Studio 2013. In the "Form1 [Design]" tab of the project, I added a MenuStrip, in which I then created a "New" and "Quit" item. When I…
0
votes
1 answer

How to restore the intent data of android service class?

I have used the below code to start the service. Start Service Code: Intent serviceIntent = new Intent(this, MyService.class); serviceIntent.putExtra(mConstants.PREF_CHANNEL_NAME, channelName); …
M Vignesh
  • 1,586
  • 2
  • 18
  • 55
0
votes
1 answer

Add Operation to File Menu in an Applescript Application

I have an application that was made with applescript for now I can substitute this for the code: try tell application "System Events" delay 10 display dialog "blah blah" end tell end try and I would like the user to be able…
Patrick Cook
  • 458
  • 12
  • 27