Year: 2006

The Orcas October Community Technology Preview (CTP) includes new types that make it easy for developers to use pipes from managed code. Pipes are used for inter-process communication (IPC) between processes running on the same machine, or processes running on any other Windows machine within a network. We’ve added support for both anonymous and named…

HashSet<T> is in our latest CTP, and you can find it in the System.Collections.Generic namespace. The naming discussion over the last month has motivated me to recap some naming highlights for HashSet, so hang in til the end if you’re interested. HashSet is an unordered collection containing unique elements. It has the standard collection operations…

The Orcas October CTP became available for download earlier this week. This CTP contains a couple new features from the BCL team: A new high performance set collection.HashSet is a new generic collection that has been added to the System.Collections.Generic namespace. It is an unordered collection that contains unique elements. In addition to the standard…

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…

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…

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…

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,…

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…

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…