本文介绍了GetProcesses挂在XP上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! Hello All, 我无法让GetCurrentProcess()正常工作。 我想要完成的是列出所有正在运行的进程。但我的 电话得到GetProcesses()挂起。 在测试时我发现下面列出的小程序 挂起还有。 我错过了什么吗? -tomas // ----这个应用程序挂起---- 使用System; 使用System.Diagnostics; 命名空间proctest { class Class1 { [STAThread] static void Main(string [] args) { Console.WriteLine(Process.GetCurrentProcess()。Proc essName); } } } // - 这段代码出了什么问题?Hello All,I''ma having trouble getting GetCurrentProcess() to work properly.What I''m trying to accomplish is list all running processes. But mycall get GetProcesses() hangs.While testing things out I found that the tiny program listed belowhangs as well.Am I missing something?-tomas//---- This app hangs ----using System;using System.Diagnostics;namespace proctest{class Class1{[STAThread]static void Main(string[] args){Console.WriteLine(Process.GetCurrentProcess().Proc essName);}}}// -- What''s wrong with this code?推荐答案 这篇关于GetProcesses挂在XP上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-21 03:09