How CLR maps SEH exceptions to managed exception types

Managed exception handling is built on Windows OS’s Structured Exception Handling, commonly referred to as SEH (to learn more about SEH, please read Matt Pietrek’s excellent article first). This implies that CLR understands how to interoperate between SEH and managed exception systems, which is a very key point since SEH is based upon the notion… Read more

CLR Inside Out – Understanding the CLR Binder

The May installment of the “CLR Inside Out” column in MSDN magazine is now available on line.  This month we have an article from Aarthi Ramamurthy and Mark Miller on Understanding The CLR Binder.  It covers some best practices for assembly binding and loading using the CLR. You can find a list of all “CLR… Read more

ThreadPool improvements in CLR v4.0

Eric Eilebrecht, a developer on our team, has just started a multi-part series on TheadPool improvements in the upcoming CLR v4.0. The first post is pretty fascinating and begins with a brief introduction on thread pools and it’s design. The post deals with changes in thread pool’s design, due to increasing core counts today. In the past, workloads… Read more

ThreadAbortException

  System.Threading.ThreadAbortException is just plain weird. For instance, most exceptions happen because of something code did on its own thread: even asynchronous exceptions are caused by something your code did on the current thread. (Note for the nitpickers: gamma rays can cause a bit in memory to flip randomly, bringing about unexpected program behavior. That’s… Read more

CLR Inside Out – Optimizations In .NET Framework 3.5 SP1

The new installment of the “CLR Inside Out” column in MSDN magazine is now available on line.  This month we have an article from Surupa Biswas on Optimizations In .NET Framework 3.5 SP1. You can find a list of all “CLR Inside Out” articles here.  As always, please let us know if you have topics… Read more

MIX09 talk on Core CLR

 For everyone who attended MIX this year, we hope it was a lot of fun. Brandon from our team, gave a talk on “Going Inside Microsoft Silverlight: Exploring the Core CLR” at MIX09 last week. The talk covers how the desktop CLR was slimmed down to be used for Silverlight, and in the process, covers Core CLR’s… Read more

Exceptions out of Fault/Finally

  Assumption: This write-up assumes that you are familiar with the managed exception handling constructs (e.g. catch, filter, fault, finally). If not, you may want to read this and also refer to the CLI specification.   Managed exception handling exposes constructs to handle an exception (e.g. catch and filter blocks) and also to perform any… Read more

New TlbImp Release on CodePlex – Full Customization of Interop Assemblies

It has been a few months since our last release of TlbImp on CodePlex. We recently released a new version of TlbImp – please visit the Codeplex page for this tool to find out more. In this release, we’ve introduced two major features: 1. Ruled-based customization of interop assemblies 2. TlbImp regression test tool Ruled-based… Read more

Preview of Code Contract Tools Now Available

We’ve mentioned Code Contracts over on the BCL Blog a few times now, but never yet on the CLR Blog.  Basically, Code Contracts are a way to add preconditions, post-conditions, and object invariants to your code.  The goal is to help you catch developer errors earlier in the cycle.  In my Introduction to Code Contracts… Read more

Resource Manager and .Net Interaction with ServiceControlManager

Kim Hamilton has a couple of excellent posts on the BCL Team blog. In the first post on Working with the ResourceManager, Kim talks about the basics of resource generation, constructing a ResourceManager and how resource fallback works. The post also covers debugging resource loading failures using Fusion logs, Reflector and Resview.  In the second… Read more