I am doing a whole bunch of things with one SPWeb and many SPLists. If I just dispose web in the
finally section would that dispose all of SPLists that I instantiated? (btw, I understand the concept of
using, so should I implement
I recommend installing and running this tool to check whether you are disposing your objects correctly: SPDisposeCheck
The rule is complicated, but in a nutshell, you should dispose of any object that you create yourself that implements the IDisposable interface.
In the context of SharePoint, this includes:
There are many more cases outlined in the Best Practices: Using Disposable Windows SharePoint Service Objects article on TechNet.
Note that your code is unlikely to compile if you try to