taskmanager

WinWord.exe won't close

二次信任 提交于 2019-12-25 09:40:58
问题 I am running into issues creating a Word document Word from Excel using Set wordapp = CreateObject("word.Application") Set letter = wordapp.Documents.Add On first run it works fine, on second run it hangs. I think the issue is if I close the document I created using the Close Button in Word, it won't close WinWord.Exe. I think it has to do with whether I saved the document or not. How can I get around this? I uninstalled/deactivated all of my Add-ins (I heard that could be an issue) to no

How to destroy my application?

回眸只為那壹抹淺笑 提交于 2019-12-24 23:11:07
问题 My application is always showing in Task Manager when I exit from my application. How do I destroy it? I used the onDestroy() method, but still it is running. I am using alarm manager and some database operations; is that the problem? 回答1: Android does not destroy applications unless it needs to. See this answer for more details: Is quitting an application frowned upon? 回答2: System.exit(0) will do the job. However, it is not at all recommended. Android does some caching, and saving state, so

Gauge/measure CPU usage without TaskMgr?

倖福魔咒の 提交于 2019-12-24 10:57:56
问题 I'm trying to gauge the CPU utilization level during a long-running process. I suspect that everytime I run task-manager to view the data, the process' CPU utilization goes down because taskmanager has a higher priority. If I give my process RealTime priority, then task manager completely locks up and I cannot use it. I want most of my CPU cycles dedicated to this process, and I want to get a rough idea of how much it is utilizing. I don't need a second-by-second monitor, but just a few

Why does Process.PrivateMemorySize64 /1024 not match what Windows Task Manager Memory (Private Working Set)?

天涯浪子 提交于 2019-12-23 09:07:32
问题 Why does Process.PrivateMemorySize64 /1024 not match what Windows Task Manager Memory (Private Working Set)? There seems to be a big (~ 30%) difference. Plus the value doesn't update frequently like task manager. Calling _process.Refresh() doesn't help. 回答1: You are looking at different things. The PrivateMemorySize64 property from the Process class is the equivalent of the Private Bytes performance counter. It represents the total amount of private memory allocated for the associated process

Prevent task (anti-malware program) from being ended

匆匆过客 提交于 2019-12-23 05:01:41
问题 I am currently developing a anti-virus/anti-malware program for Windows 10. I need the program to be protected; so that it may not be ended via the task manager. For example, If I were to try to end the Antimalware Service Executable with the task manager, I'd receive the following message: Unable to terminate process The operation could not be completed. Access is denied. Is there any way I could add this feature programmatically; maybe via Python? EDIT: This is for an aggressive antivirus

automatically login to windows after startup

随声附和 提交于 2019-12-23 03:39:10
问题 a client of mine uses the task manager to trigger (start) a process to do something. This process contains a UI, and needs to be a single instance at all times (been taken care of). Everything runs smoothly from the task manager, accept if you need to set the task manager settings to:”run whether user is logged on or not” (see the answer why this is a problem here: http://social.technet.microsoft.com/Forums/en-US/c03d6691-b058-4f8d-961c-e8eba25bbaed/task-scheduler-problem-run-whether-user-is

Task manager close is not detected second time in a WinForms Application

强颜欢笑 提交于 2019-12-22 08:26:38
问题 private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) { if (MessageBox.Show(this, "Do you really want to close?", "Close?", MessageBoxButtons.YesNo) == DialogResult.No) { e.Cancel = true; } } } So when I want to close the application clicking the close button the message box is shown as it should, then I chose no. Then the line e.Cancel = true is executed and the form is not closed. Now the thing is, after this if i close the

How much memory is my windows app really using?

守給你的承諾、 提交于 2019-12-20 14:09:56
问题 I have a long-running memory hog of an experimental program, and I'd like to know it's actual memory footprint. The Task Manager says (in windows7-64) that the app is consuming 800 mb of memory, but the total amount of memory allocated, also according to the task manager, is 3.7gb. The sum of all the allocated memory does not equal 3.7gb. How can I determine, on the fly, how much memory my application is actually consuming. Corollary: What memory is the task manager actually reporting? It

How to prevent an app from being killed in task manager?

此生再无相见时 提交于 2019-12-20 09:25:01
问题 I'm working on a parental control app (written in WPF) and would like to disallow anybody (including administrator) to kill my process. A while back, I found the following code online and it almost works perfectly, except that it doesn't work sometimes. static void SetAcl() { var sd = new RawSecurityDescriptor(ControlFlags.None, new SecurityIdentifier(WellKnownSidType.LocalSystemSid, null), null, null, new RawAcl(2, 0)); sd.SetFlags(ControlFlags.DiscretionaryAclPresent | ControlFlags

Change java process description in windows task manager [duplicate]

萝らか妹 提交于 2019-12-19 18:16:06
问题 This question already has answers here : How can I give my Java application a unique process name? (6 answers) Closed 5 years ago . Is there a command line argument to set the title that JVM reports to the windows task manager? All my java processes only show up as ‘javaw.exe’ with description ‘Java(TM) Platform SE binary’. It would be great, if I could set some -param="This is eclipse" e.g. so that I can easily tell them apart. It would prevent me from frequently killing my IDE instead of, e