Questions tagged [halt]

47 questions
2
votes
2 answers

Java Runtime#halt() does not stop the JVM

This is a client/server application using RMI. Once a RMI request is received by the server for destroy() - I need to abort the VM. I am using Runtime.getRuntime().halt(0) for this purpose. But after the call to halt() the VM still exists and the…
Dakshinamurthy Karra
  • 5,353
  • 1
  • 17
  • 28
2
votes
8 answers

How do I write a program that tells when my other program ends?

How do I write a program that tells when my other program ends?
Jen Astin
2
votes
2 answers

Bitwise shift makes my program halt?

I am working with an assignment where I have to write a C function that calculates log2 of an unsigned integer n by finding the most significant set bit and returning the position of that bit. For example, if n is 17 (0b10001), the function should…
1
vote
2 answers

jQuery Halt Form Submit

I've just put together a nice form which has taken me hours, with some natty jQuery focusout validation. The focusout attribute is attached to the input fields onload. I then re-use my validation functions by triggering the focusout event onsubmit,…
Dan Twining
  • 640
  • 4
  • 17
  • 30
1
vote
1 answer

org-mode in Emacs: eval chunks of code in asynchronous mode

I am using org-mode to write reports including chunks of codes. When I want to generate the output (a PDF usually), org-mode executes all the commands in the file, which is fine. The problem however, is that during that executing, I cannot do…
maroxe
  • 2,057
  • 4
  • 22
  • 30
1
vote
1 answer

NetLogo: setup-patches created after Tools -> Halt is used?

I my model I have several version of how my world should look like. I implemented this as "chooser" including choices: "single_tree" "clustered". My world is 501 * 501 patches. When I run setup of my both variations, they are not created until I…
maycca
  • 3,848
  • 5
  • 36
  • 67
1
vote
0 answers

How do I make an USB printer halt mid-print?

What I'm trying to do is make a USB printer behave a bit more like a dot matrix printer in the sense of being able to control when a page is actually ejected. What I want to do is use two pdf files, one for the top of the page and one for the…
Mritter26
  • 39
  • 4
1
vote
1 answer

Execute a binary string with a "Program execution Functions" (exec, system, etc ...)

Is it possible to execute a binary string with a "Program execution Functions" (exec, system, etc ...) ? http://php.net/manual/en/ref.exec.php For example, the following file is a php script with a binary "hello, world" program. It was originally…
Thom Thom Thom
  • 1,279
  • 1
  • 11
  • 21
1
vote
3 answers

Problem with downloads: slow and/or fails

I have the following script to let a visitor download a file: header( 'Content-Type: application/octet-stream' ); header( 'Content-Transfer-Encoding: binary' ); header( 'Content-Disposition: attachment; filename=' . $fileName ); header(…
Decent Dabbler
  • 22,532
  • 8
  • 74
  • 106
1
vote
2 answers

boost::thread execution

I have a class ChunkManager that has a few (supposed to be) asynchronous methods. These methods handle tasks in my game engine such as loading the map blocks (similar to Minecraft) on a different thread so as not to completely halt the main thread…
Major Tom
  • 23
  • 3
0
votes
1 answer

Determine system halt in c++

Alright so I'm working on a program written in c++ that is running as a daemon. It is primarily aiming Linux users, but I wish to include Windows (running as service) and Mac users as well. I want the daemon to log whenever it is manually shut down.…
roggan87
  • 462
  • 3
  • 10
0
votes
2 answers

My android app should suspend activity when not on screen

An android app that I'm writing seems to consume a lot of battery even when it's not the foreground application. My assumption is that I need to unregister the listeners for gps, orientation, etc., when the application is not in the foreground. The…
HappyEngineer
  • 4,017
  • 9
  • 46
  • 60
0
votes
1 answer

Is there any way to stop object method execution from another method?

Situation is as follows: There is a separate object that is responsible for generating page content, we can call it Content. Another object is its' parent - Core object. Content object calls Core method *Check_parameters_count($parameters_count)*,…
Edvinas Ilčenko
  • 1,431
  • 1
  • 9
  • 4
0
votes
4 answers

Java: Halting Program Without Input Prompt

As many of you may know, when you have a while loop (or any loop for that matter) when an input method is called, the program stops and waits for input. e.g. while { String input = in.readLine(); int x = 55; //This will not execute…
Jimmy Huch
  • 4,400
  • 7
  • 29
  • 34
0
votes
1 answer

How to run a command just after shutdown or halt in Debian?

I'm working with an embedded computer that has a Debian on it. I already manage to run a command just before it has booted and play the "bell" to tell that is ready to work, and for example try to connect to a service. The problem is that I need to…
anizzomc
  • 242
  • 2
  • 13