Thursday, October 21, 2010

 private static T FindItem(IEnumerable list, Predicate findDelegate) where T: AbstractEntityItem
        {
            foreach (T item in list)
                if (findDelegate(item))
                    return item;
            return null;
        }

Thursday, October 07, 2010

Not .NET at All but VB6

Memory Leaks

This is very useful
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=28bd5941-c458-46f1-b24d-f60151d875a3&displaylang=en

I usually set up the debug diagnostics tool to start ~200Mb and every 15Mb thereafter after 4 or 5 dumps start the analysis.

And this which is a less sophisticated tool but helpful nevertheless:
http://mcfunley.com/277/using-leakdiag-to-debug-unmanaged-memory-leaks/comment-page-1

http://www.codeproject.com/KB/cpp/Tools.aspx