Hello All,
I'ma having trouble getting GetCurrentProce ss() to work properly.
What I'm trying to accomplish is list all running processes. But my
call get GetProcesses() hangs.
While testing things out I found that the tiny program listed below
hangs as well.
Am I missing something?
-tomas
//---- This app hangs ----
using System;
using System.Diagnost ics;
namespace proctest
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLi ne(Process.GetC urrentProcess() .ProcessName);
}
}
}
// -- What's wrong with this code?
I'ma having trouble getting GetCurrentProce ss() to work properly.
What I'm trying to accomplish is list all running processes. But my
call get GetProcesses() hangs.
While testing things out I found that the tiny program listed below
hangs as well.
Am I missing something?
-tomas
//---- This app hangs ----
using System;
using System.Diagnost ics;
namespace proctest
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLi ne(Process.GetC urrentProcess() .ProcessName);
}
}
}
// -- What's wrong with this code?
Comment