Hi from the New Guy [Matt Ellis]

As one of the newest members of the BCL team, I wanted to take some time to introduce myself.  I’m Matt Ellis and I’m the newest software design engineer on the team.  Right now some of you might be experiencing déjà vu, since only a few months ago I was saying hello as the newest…

1

Process and ServiceProcess Caching [Robert Villahermosa]

I’ve seen several questions over the last month or two about refreshing the status of certain properties on the Process and ServiceProcess classes.  I’d like to take this opportunity to take a look at an example from both these classes and see how we can resolve these issues. Issue One: Process.MainWindowHandle resturns 0, even though…

5

Hello from the New PM [Inbar Gazit]

I just stared out working for this team and I’m very excited to be part of the larger .NET Framework group and particularly part of the CLR team. Like you, I’ve been a consumer of the CLR for 4 years now and so I’m very keen on being able to switch sides and start designing…

0

Regex Class Caching Changes between .NET Framework 1.1 and .NET Framework 2.0 [Josh Free]

The .NET Framework System.Text.RegularExpressions.Regex class maintains a cache of parsed regular expressions.  The cache improves the performance of methods that create regular expressions, as the Regex class is able to avoid the cost of re-parsing and re-compiling existing regular expressions.  The cache does not affect the performance of match operations on the same input string,…

10

CLR Behavior on OutOfMemoryExceptions [Brian Grunkemeyer]

For out of memory exceptions, keep in mind that we can run out of memory in the native heaps in the process, as well as within the managed heap.  There are at least four interesting causes: Lack of available pages of memory, due to limited resources on the machine and/or competition between processes. Internal fragmentation…

7

Decimal Negative Zero Representation [Lakshan Fernando]

One of our customers wondered recently if we represent negative zero in Decimal. At first glance, it doesn’t look to be the case as seen below;    Decimal zero = Decimal.Zero;   Decimal negativeZero_1 = new Decimal(0, 0, 0, true, 0);   Decimal negativeZero_2 = -0.0m;    Decimal negativeZero_3 = Decimal.Negate(Decimal.Zero);   Console.WriteLine(“Negative Zero: {0}, {1}, {2} Positive Zero: {3}”, negativeZero_1, negativeZero_2, negativeZero_3,…

3

Top 5 SerialPort Tips [Kim Hamilton]

The SerialPort class requires some “warming up” time for our users coming from VB6 or other non-.NET backgrounds. One of the main reasons is that SerialPort and its underlying BaseStream are designed to behave similarly to other .NET streams, which (for example) means that Read() may not act as you’d expect. And of course there…

2

System.TimeZone2 Starter Guide [Kathy Kam]

Extended Time Zone support is one of the most requested features in the BCL. System.TimeZone provides some basic support for converting from your machine Time Zone to UTC and vice versa, but it doesn’t have support to convert… say from Pacific Standard Time to Eastern Standard Time. In the “Orcas” September CTP, you’ll see that…

57