terminate

Stopping Excel Macro executution when pressing Esc won't work

爷,独闯天下 提交于 2019-12-03 08:12:30
问题 I'm running excel 2007 on XP. Is there a way to stop a macro from running during its execution other than pressing escape? Usually if I think I created an infinate loop or otherwise messed something up I hit escape and it throws an error but the macro stops. This time (and I've done it before but not this badly), I set up a msgbox for some quick debugging. Turns out it had to loop about 6000 times, which made means I had to "OK" 6000 message boxes, which took several minutes. I didn't save

Which is the proper way to terminate a delphi application?

你说的曾经没有我的故事 提交于 2019-12-03 05:48:05
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 moment. Basically, my code looks like this: //Freeing all objects (Obj1.Free, etc..) Application.Terminate; Halt; Is this the right way to stop a Delphi application or should it be done in another way? Application.Terminate() breaks the message loops in TApplication.Run() and TForm.ShowModal() , allowing the main thread to exit normally, perform necessary

Amazon EC2 autoscaling down with graceful shutdown?

痞子三分冷 提交于 2019-12-03 04:14:16
问题 We're looking at using EC2 autoscaling to deal with spikes in load. In our case we want to scale up instances based on an SQS queue size and then down scale with the queue size gets back under control. Each SQS message defines a potentially long running job (sometimes up to 20 minutes each for message) that must complete before the instance can be terminated. Our software handles the shutdown process gracefully, so issuing sudo service ourapp stop will wait for the app to complete before

terminate called after throwing an instance of 'std::system_error' threadpool

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I run my code : nb workers = 12 I'm i : 0 HELLO I'm func1 BYE I'm func2 terminate called after throwing an instance of 'std::system_error' what(): Invalid argument Aborted (core dumped) terminate called after throwing an instance of 'std::system_error'l what(): Invalid argument #ifndef CPP_PLAZZA_EXAMPLE_H #define CPP_PLAZZA_EXAMPLE_H #include <thread> #include <vector> #include <list> #include <memory> #include <functional> #include <mutex> #include <condition_variable> #include <atomic> #include <iterator> #include <tuple> class

Stopping Excel Macro executution when pressing Esc won't work

强颜欢笑 提交于 2019-12-03 01:03:12
I'm running excel 2007 on XP. Is there a way to stop a macro from running during its execution other than pressing escape? Usually if I think I created an infinate loop or otherwise messed something up I hit escape and it throws an error but the macro stops. This time (and I've done it before but not this badly), I set up a msgbox for some quick debugging. Turns out it had to loop about 6000 times, which made means I had to "OK" 6000 message boxes, which took several minutes. I didn't save before running (another mistake) so I couldn't open task manager to exit. Is there another way to stop

How to kill a process created by subprocess by another function?

僤鯓⒐⒋嵵緔 提交于 2019-12-02 18:11:59
问题 I'm wondering why I can't terminate a batch file raised from one function by using another function. What I'm trying to do is to manage the batch file on my dedicated computer by Telebot. My test.bat file: title test.bat timeout /t 999 I've written a separated module with functions to start and kill this batch file: from os import path, kill import subprocess import signal TEST_PATH = 'C:\\Users\\Administrator\\Desktop\\TEST\\' un_proc = None class sidim(object): def __init__(self): pass def

Amazon EC2 autoscaling down with graceful shutdown?

落爺英雄遲暮 提交于 2019-12-02 16:37:59
We're looking at using EC2 autoscaling to deal with spikes in load. In our case we want to scale up instances based on an SQS queue size and then down scale with the queue size gets back under control. Each SQS message defines a potentially long running job (sometimes up to 20 minutes each for message) that must complete before the instance can be terminated. Our software handles the shutdown process gracefully, so issuing sudo service ourapp stop will wait for the app to complete before returning. My question; when autoscaling starts scaling down it issues a terminate (which apparently is

Handling Signals in an MPI Application / Gracefully exit

醉酒当歌 提交于 2019-12-02 04:44:33
问题 How can signals be handled safley in and MPI application (for example SIGUSR1 which should tell the application that its runtime has expired and should terminate in the next 10 min.) I have several constraints: Finish all parallel/serial IO first befor quitting the application! In all other circumstances the application can exit without any problem How can this be achieved safely, no deadlocks while trying to exit, and properly leaving the current context jumping back to main() and calling

PowerShell won't terminate hung process

自作多情 提交于 2019-12-02 03:52:29
问题 I have a scenario where a process is stuck every single Monday morning because of an Oracle database so I tried creating a PowerShell script to run every Monday but regardless of getting an error or not, the process remains. The line I'm attempting to use for the "kill" is: Get-Process -Name ez0* -ComputerName $server | Stop-Process -Force Tried doing this locally as well without the -ComputerName . I'm not getting any errors from this line with or without the -Force it just executes and

Handling Signals in an MPI Application / Gracefully exit

久未见 提交于 2019-12-02 01:16:10
How can signals be handled safley in and MPI application (for example SIGUSR1 which should tell the application that its runtime has expired and should terminate in the next 10 min.) I have several constraints: Finish all parallel/serial IO first befor quitting the application! In all other circumstances the application can exit without any problem How can this be achieved safely, no deadlocks while trying to exit, and properly leaving the current context jumping back to main() and calling MPI_FINALIZE() ? Somehow the processes have to aggree on exiting (I think this is the same in