.NET Generics and Code Bloat (or its lack thereof)

Introduction I recently got questions from a couple of customers on the implications of using generic types (generics) in .NET on code bloat (also known as code explosion). This is a legitimate concern and let me explain why. Among the most popular programming languages, C++ was one of the first to provide generic programming through…

2

Workflow Foundation: Migration from WF3 to WF4 – Notes and References

As you probably know, the .NET Framework 4.0 is going to introduce a new object model for the Workflow Foundation (WF) technology, in short called WF4, which will be added to the existing WF object model, in short called WF3. The WF3 object model uses the namespaces System.Workflow.*, whereas the WF4 object model uses the…

1

A CLR COM Interop Issue

Hello again. Today’s case is pretty interesting, in my opinion, because it merges a number of different areas. We’ll start from the analysis of a memory corruption to go to Runtime Callable Wrappers in the .NET CLR to finish with COM objects lifetime considerations. If all that sounds interesting, or at least not too boring…

4

Analyzing a user-mode exception and conditionally taking a kernel dump

Introduction Hello again. It has been more than one month since the last post. I guess the Christmas vacation and the  local christmas sweet played a role in this delay . In the last few days I was faced with an interesting issue: a Windows Forms application abruptly terminates despite the fact that there are…

1