Welcome to MSDN Blogs Sign in | Join | Help

June 2006 - Posts

How to use SafeHandle in a Resilient Library [Brian Grunkemeyer]

SafeHandle is the preferred mechanism for controlling the lifetime of an OS resource (such as a handle to a file, semaphore, or block of memory*) and guaranteeing that the resource is eventually freed. Using some advanced reliability features (ie, constrained
Posted by BCLTeam | 4 Comments

Retrieving the Parent Process of a Child when Multiple Instances Exist [Robert Villahermosa]

I recently got assigned a question on one of the MSDN forums about obtaining the Parent Process of a child. This is a fairly often asked question, I’ve seen it on the System.Diagnostics FAQ page. The interesting twist to this however, was that sometimes
Posted by BCLTeam | 1 Comments

Making Command Line Arguments Easier [Matt Ellis]

Before we get to the meat of this blog post, I want to take a moment to introduce myself. My name is Matt Ellis and I’m working this summer as an intern on the Base Class Libraries team. I’m really enjoying my time here, and it’s pretty amazing to be
Posted by BCLTeam | 12 Comments

How to find CPU usage of a process? [Ravi Krishnaswamy]

I’ve seen this question come up a few times and the solution is hard to infer, especially given that the logical place you go to, the Process class, doesn’t have a property to reveal this information. We could look into adding it to Process class at some
Posted by BCLTeam | 9 Comments

How to Read Performance Counters [Ryan Byington]

In the time that I have owned performance counters I have seen a lot of code that incorrectly uses the PerformanceCounter class to read counter values. This entry seeks to explain the proper way to read counter values using the PerformanceCounter class.
Posted by BCLTeam | 5 Comments
Filed under:
 
Page view tracker