Questions tagged [halt]

47 questions
68
votes
3 answers

Continue SQL query even on errors in MySQL workbench

I'm using MySQL workbench to import a Joomla sample_data.sql file into my local database. I want it to continue importing, even if an error occurs, by skipping the line that caused the error. Is there something I can prefix the SQL with to prevent…
Steve
  • 2,066
  • 13
  • 60
  • 115
27
votes
6 answers

Which is the proper way to terminate a delphi application?

I would like to terminate a Delphi application without executing any other code line and I'm wondering about which is the proper way to do this. Furthermore, I would like to know if there's something wrong in what I'm actually doing at the…
Hwau
  • 850
  • 3
  • 12
  • 23
10
votes
1 answer

Entering HALT mode with master interrupt enabled but no Interrupt Enable (0xFF0F = 0)?

According to Gameboy Programming Manual, HALT mode is canceled by the following events, which have the starting addresses indicated. A LOW signal to the /RESET terminal Starting address: 0x0000 The interrupt-enable flag and its corresponding…
GabrielOshiro
  • 7,986
  • 4
  • 45
  • 57
6
votes
5 answers

How to return an error code with Halt(n) from an Exception block with D2007?

Update: It seems to be specific to D2007. It works in D2010 like it worked in older version. I would like to return an exit code depending on the type of Exception caught in the Eception Handler block like: program test; {$APPTYPE CONSOLE} uses …
Francesca
  • 21,452
  • 4
  • 49
  • 90
5
votes
2 answers

How to make linux power off when halt is run?

I have successfully used the pm_power_off function pointer to make my custom Linux board call its power management chip over i2c (to turn the power off). I would like the Linux halt command to switch the power off too. How can I achieve this? The…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
5
votes
3 answers

Code to stop execution of another code

I have a R code which does some data analysis and returns TRUE/FALSE. Sometimes, the input data is too large and the code just keeps running. I want a script that will monitor my data analysis code and if it doesn't return anything, in say 600…
Sim101011
  • 305
  • 1
  • 13
5
votes
4 answers

Pause execution of a method without locking GUI. C#

I'm working on a card game in C# for a project on my Intro to OOP paper and have got the game working now but am adding "flair" to the GUI. Currently cards are dealt and appear on the UI instantaneously. I want to have to program pause for a moment…
Windos
  • 1,796
  • 1
  • 13
  • 19
5
votes
1 answer

Linux reboot() system call: why it calls do_exit(0) after kernel_halt()?

This is related to: https://stackoverflow.com/a/13413099/1284631 Now, the question is: Why the reboot() system call, when called with LINUX_REBOOT_CMD_HALT parameter (see here: http://lxr.linux.no/linux+v3.6.6/kernel/sys.c#L480) is calling…
user1284631
  • 4,446
  • 36
  • 61
4
votes
4 answers

Where can I find the source code of the "halt" tool?

Can anyone link up the source of the halt tool? It is a binary usually located in /sbin which shuts down the system. I did some search and I couldn't find it anywhere.
Kristina
  • 15,859
  • 29
  • 111
  • 181
3
votes
1 answer

NetLogo - how to shortcut halt?

I remember that there used to be a button for "halt" in NetLogo, and no more in v.5.1.0. So there is a need to click menu > tools > halt, which is quite cumbersome. While debugging a model I get to do this a lot, in order to stop a forever…
Lizardie
  • 200
  • 1
  • 11
3
votes
1 answer

WPF DoDragDrop causes control animation to halt

Here's the scenario (simplified): I have a control (let's say, a Rectangle) on the Window. I hooked the MouseMove event to make it initiate a drag&drop. Then in the MouseDown event I let it animate, moving 50 pixels to the right. However, when I…
user258132
  • 31
  • 2
3
votes
2 answers

Pull GPIO pin low as last act prior to shutting down

I want to signal a power off state by pulling a GPIO pin low for 10 seconds. I have discovered the run levels in the /etc/rc.* directories. Eventually the "halt" command gets run. I'd like to edit and recompile the halt.c file, but I am unable to…
2
votes
0 answers

Where is the correct place in the kernel to add platform-specific halt and power-off

I'm writing a platform-specific multi-function device driver, which includes an i2c driver. I want to send an i2c message to a custom power-management chip, when the Linux kernel is halted or powered-off. I've tried pm_power_off = my_func to…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
2
votes
1 answer

How to halt a script launched with 'run' in Matlab / GNU Octave?

Is there any way to stop a script launched with 'run' or 'source' from Matlab / GNU Octave? I mean different from Ctrl-C, say that a given condition (perhaps given by global variables) holds and a break signal is sent to it. Example: The script…
nightcod3r
  • 752
  • 1
  • 7
  • 26
2
votes
2 answers

How to continue javascript execution when an error occurs

I use the WP native function wp_enqueue_script() for all my script loading in both WP front and back-end so it can handle duplicated calls to the same script and so on. One of the issues is that other programmers don't use this function and load…
Diosney
  • 10,520
  • 15
  • 66
  • 111
1
2 3 4