F
Floyd Burger
I have a real simple C# console project, consisting of this:
using System.Diagnostics;
static void Main(string[] args)
{
Process[] processes = Process.GetProcesses();
// write all of the process info
foreach(Process p in processes)
Console.WriteLine(p.ProcessName + " : " + p.MainWindowTitle);
Console.ReadLine();
}
When I run it on my dev machine it hangs on the call to
Process.GetProcesses(). Task Manager shows 0% CPU and a steady 10,964 mem
usage while it's hung. There are 40 tasks running, including devenv,
newsreader, Norton Internet Security, etc. When I run this little test on
other computers (most have more tasks running), GetProcesses() returns
almost immediately and all processes are listed. On my dev machine this
console project has been running for the past hour, and it still hasn't
returned from GetProcesses().
I'm administrator on all tested systems. VS.NET 2003, .NET Framework
1.1.4322. Any ideas?
using System.Diagnostics;
static void Main(string[] args)
{
Process[] processes = Process.GetProcesses();
// write all of the process info
foreach(Process p in processes)
Console.WriteLine(p.ProcessName + " : " + p.MainWindowTitle);
Console.ReadLine();
}
When I run it on my dev machine it hangs on the call to
Process.GetProcesses(). Task Manager shows 0% CPU and a steady 10,964 mem
usage while it's hung. There are 40 tasks running, including devenv,
newsreader, Norton Internet Security, etc. When I run this little test on
other computers (most have more tasks running), GetProcesses() returns
almost immediately and all processes are listed. On my dev machine this
console project has been running for the past hour, and it still hasn't
returned from GetProcesses().
I'm administrator on all tested systems. VS.NET 2003, .NET Framework
1.1.4322. Any ideas?