How to Manage SharePoint 2007 Objects in Code

Here is a great article on how to manage and dispose of SharePoint objects when using the Object model in C# or VB.NET.  This article discusses different coding practices and communicates the best way to ensure that the pesky "excessive requests" message doesn't get logged to the ULS logs.

https://msdn2.microsoft.com/en-us/library/aa973248.aspx