Blend Behaviors + DependencyPropertyDescriptor = Memory Leak

Thursday, March 14, 2013

In the past couple of weeks, I was taking part in a focused effort to find and fix memory-related issues in one of my client's applications. In this post I want to write about a specific type of memory leak that I found more than once, which is related to Blend-behaviors. As an example, consider the following behavior: 1: public class MyMarginDependentBehavior : Behavior<FrameworkElement> 2: { 3: private readonly DependencyPropertyDescriptor...
no comments

Intern Pool Improvements between Various .NET Framework versions

Monday, October 8, 2012

As you probably know, .NET supports string interning for better memory usage of .NET applications. String literals are automatically interned by the runtime, while any other string can be interned by an explicit call to String.Intern. I will not go into details regarding string interning, if you are not familiar with the concept, you can get started by reading the MSDN documentation for the String.Intern method. In this post, I would like to write about one of the implementation details of the .NET intern pool, specifically, where it is stored and how the storage strategy was changed between recent...
no comments