Home > Development, Microsoft Learning Gateway > Memory Leaks in My Planner Web Part

Memory Leaks in My Planner Web Part

Just spent an evening hunting down and fixing memory leaks in the MLG My Planner web part. The code was opening SPSite and SPWeb objects and then not disposing them. Level 101 error by whoever wrote it!

The layout of the code is a bit bizarre. There’s the main web part project, and 6 other supporting projects, all of which are required by the web part, but not used by another other project. They each only contain 1 or 2 files. This is totally unnecessary and leads to having to ship 6 extra dlls. When I get a bit more time to work on it I’ll have to combine them all into one dll.

  1. LG Dev
    August 4th, 2009 at 10:36 | #1

    this web part was upgraded from MLG 2005 to 2007 and it was developed 2 years before this post early 2007 where nobody no anything about SharePoint 2007 u should get new versions.

  1. No trackbacks yet.