Easy to Miss Dictionary<K,T> Memory Leak.

28 באוקטובר 2012

Recently I was asked to profile an application that had a memory leak. The leak was very easy to reproduce as with each screen you navigated to the memory consumption was inflated with ~15-30MB of extra objects. After doing some profiling using the ANTS profiler I found out that when I navigate from screen to screen I have a bunch of AppCommand elements, which implement the ICommands interface, added to the memory. There are about 25 actions available in the system so after a few screen navigations when I had ~800 of them in memory I understood...
2 תגובות

A New Road

26 באוקטובר 2012

Hey, my name is Amit Raz, and I'm a consultant at Sela Group. For the past 3 years, I have blogged at Dev102, but I guess that by writing here, I will make the stuff I write available to more people, which is why I started blogging in the first place. I started my career about 8 years ago, developing with C++ and .NET 1.1,  but for the last 5 years I have worked almost entirely with WPF C# on various Windows's OSs and some iOS and Android development. I hope that you will find this...
אין תגובות