Category Archives

Archive of posts published in the category: Debugging

Reordered code after compilation

Can one line of code in C# JIT compile into two different blocks of code in the same program? This sounds a little tricky but in fact is very easy and happens pretty often. Consider the following code: using System; namespace Reordering {…

Custom memory allocation in C# Part 7 — Stack allocation once again

This is the seventh part of the Custom memory allocation series. For your convenience you can find other parts in the table of contents in Part 1 — Allocating object on a stack We know how to allocate object on a stack, however,…

Debugging WCF high memory usage

If you are interested in the topic see the polish recording from Intive Lunch & Learn or slides Recently I was debugging high memory usage in application written in .NET 4 using WCF. After few hours application was eating almost 8 GB of…