Top "System.diagnostics" questions

System.

Why is this process crashing as soon as it is launched?

We have an IIS WCF service that launches another process (app.exe) as a different user. I have complete control …

c# process system.diagnostics windows-server-2012
Get CPU and RAM usage

I need to get the ram memory and CPU usage during execution of a process (the process can run sometimes …

c# cpu-usage system.diagnostics
System.Diagnostics.Debug.WriteLine in production code

I should probably know this already, but I'm not sure and I don't see it documented. I use System.Diagnostics.…

.net debugging system.diagnostics
How to dynamically set log file using App.config and System.Diagnostics?

I was looking for a solution to provide logging to my latest project when I came across an article ( http://…

c# logging app-config system.diagnostics
When should I use Tracing vs Logger.NET, Enterprise Library, log4net or Ukadc.Diagnostics?

How do I choose between standard tracing, Logger.NET, Enterprise Library, log4net or Ukadc.Diagnostics? Is there a situation …

.net log4net enterprise-library nlog system.diagnostics
Can Stopwatch be used in production code?

I need an accurate timer, and DateTime.Now seems not accurate enough. From the descriptions I read, System.Diagnostics.Stopwatch …

c# timer system.diagnostics stopwatch
"Gracefully" killing a process

Right now I am using Process.Kill() to kill a process. Is there a way though, instead of just killing …

c# .net process kill system.diagnostics
How to check if process is still running before calling Process.GetProcessById?

In .NET Process.GetProcessById throws an exception if the process with this ID is not running. How to safely call …

c# .net system.diagnostics
.NET Process Start Process Error using credentials (The handle is invalid)

I have an Windows Form application that supplies the User Name, Domain, and Password to the StartInfo, and it throws …

c# .net system.diagnostics
Best way to read csv file in C# to improve time efficiency

I have the following code to read in a large file, say with over a million rows. I am using …

c# performance linq parallel-processing system.diagnostics