Questions tagged [pausing-execution]
61 questions
1
vote
1 answer
Halting and continuing embebbed ruby code
I call Ruby functions from my C++ code through the embedding commands (rb_eval and the like). Is there any way to stop the execution of the code partway, save the local variables, and restart it from the same spot later?

zaratustra
- 8,148
- 8
- 36
- 42
1
vote
1 answer
Android dalvikvm pausing app making it laggy
For some reason, This class is doing too much work and lags which is a major issue in the context of my app. When a user clicks on a location on the map, it should get the address of that location quickly but unfortunately I get logCat dalvikvm…

user2219097
- 357
- 3
- 8
- 25
1
vote
2 answers
jQuery how can I pause the function?
Ok, I'm new to jQuery and not an expert. Here is the first part of my code:
$(document).ready(function() {
$(".scroll").click(function(event){
event.preventDefault();
…

Paweł Góra
- 38
- 5
1
vote
1 answer
What could be the causes that Hyper-V would pause running virtual machines by it self?
What could be the causes that Hyper-V would pause running virtual machines by it self?
We have encountered that problem twice recently. Our 2 VMs have 4 Gb of ram each and does not have a lot of traffic. I think we have something like 50gb of space…

Samuel Poirier
- 1,240
- 2
- 15
- 30
1
vote
2 answers
pausing program without interrupting timers c#
I am writing a program that has several "Worker" objects going off and doing tasks that take as set amount of time. I have created a worker class with an internal timer that is working fine. However, when doing the "work" i will at times need to…

Adrian
- 183
- 1
- 1
- 6
1
vote
1 answer
how do I pause the SpriteAnimation in libGDX with a button to be able to view the current frame when pause button is pressed?
I was trying to pause the animation with a pause/resume button, by doing this :
public static int gameStatus = 1;
public int gamePaused = 0;
public int gameRunning = 0;
public void create(){
gameRunning = 1;
//.. code
}
public void render(){
…

alex
- 358
- 3
- 14
1
vote
1 answer
Video is not paused when hold mode ON
I submitted my app to samsung market but they refused it saying that video is not pausing when hold mode ON.
Does anyone help me to understand what code I have to add? that's my clipvidoe activity
import android.app.Activity;
import…

wocmultimedia
- 259
- 1
- 6
- 18
1
vote
2 answers
how to continuously test whether a handler's runnable is finished?
How can Android code to detect when a handler's runnable process is completed? In this particular application, no other events are generated other than the handler finishing its work.
Simply putting a while() loop around a continuous test of a…

androidAnnie
- 11
- 3
0
votes
2 answers
javascript pausing a script changes order of appearance
i have the following script:
posting();
pause(time);
postSent(postUrl, fields);
function postSent(postUrl, fields)
{
$.ajax( {
url : postUrl,
type : "POST",
data : fields,
cache : false,
…

Asaf Nevo
- 11,338
- 23
- 79
- 154
0
votes
0 answers
Trying to make a random sound player, How would i do this with my existing code?
As the title suggests I am playing a random sound based on a tag in a command. the problem is, if someone runs this command multiple times, it just plays the sound, even if the other one has not finished yet, besides that it works as intended. be…
0
votes
1 answer
How to pause the main Swing thread until after a Swing Timer finishes?
I use a Swing.Timer to slow my animation. However, I want to pause my current execution until after the Timer thread completes. How do I do that? The Timer spawns off a new thread that
is not responsive to the original. Here is a sample program that…

Falsoon
- 1,009
- 1
- 7
- 11
0
votes
1 answer
Pausing a DLL export until triggered by an EXE
Does anyone have any ideas of how a DLL function can be made to wait for “input”, and how to call a specific instance of a DLL export?
I’m trying to convert a Windows service to a DLL. It contains a function that logs some boot-up information and…

Synetech
- 9,643
- 9
- 64
- 96
0
votes
0 answers
boost::python threading to pause and resume c++ function through python
I have a simple c++ class that I've built a wrapper for to interface it with python 2.7. Now, I would like to be able to call a method of that class, ExampleClass::simulate(double sim_time) through python and pause the method/thread by calling…

borizzzzz
- 620
- 1
- 6
- 17
0
votes
1 answer
jQuery setTimeout Not Stopping Function Execution
Attempting to build a chart that allows users to click play and it will cycle through an array of years, displaying each year in the chart for a few seconds, before moving onto the next.
It should also allow the user to click pause, pausing the…

albert
- 8,112
- 3
- 47
- 63
0
votes
2 answers
Wiered behaviour by Javascript
I have the following Java Script code fragment:
function upoload_TC(evt) {
var file = evt.target.files[0];
if(file.type != 'text/plain'){
evt.target.style='color:red;';
}
else{
var app_data='';
reader = new…

Jithin Pavithran
- 1,250
- 2
- 16
- 41