lookupFieldWithPicker Project fails SPDisposeCheck

Feb 28, 2012 at 3:31 PM
Edited Feb 28, 2012 at 3:50 PM

I  am building the LookupFieldWithPicker Project locally and it fails SPDispose check on line 55 and 66 of  LookupFieldWithPickerControl.cs and othe rplaces.

Are these objects dispsed of elsewhere?

Coordinator
Mar 12, 2012 at 10:03 AM

Hi,

yes, you are right, this web is not getting disposed explicitly. Although this should not harm the Farm. The SPSite container will dispose all the emitted webs implicitly (http://www.ilovesharepoint.com/2010/03/sharepoint-disposing-myths.html). But I consider to change it to avoid disposing discussions.

Bye,

Christian