Calling Process.GetProcess in C# causes an application error.

  • Thread starter Thread starter news.tampabay.rr.com
  • Start date Start date
Mine don't. What errors/exceptions do you get?

public class ProcessList
{
public static void Main()
{
foreach (Process process in Process.GetProcesses())
{
Console.WriteLine(process.ProcessName);
}
Console.ReadLine();
}
}
 
Hi!

Can you be specific as to what kind of error you get ?

Regards,
Kumar Gaurav Khanna

--
----------------------------------------------------------------------------
-------
I can't be garbage collected; I am pinned to .NET
----------------------------------------------------------------------------
-------
Microsoft MVP - .NET
WinToolZone - http://www.wintoolzone.com/
Spelunking Microsoft Technologies and my home on the web :-)
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/

http://dot-net.blogspot.com/
http://kgk.blogspot.com/
 
Back
Top