The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
2answers
24 views

Dispose should not be called on this object. // SPDisposeCheck comment

In the code below, within using directive, for rootweb, Dispose(); method will be called implicitly, is that correct? Or should I need a using directive for this: SPWeb rootweb = site.RootWeb since I ...
0
votes
1answer
24 views

Dispose Explicitly Called on SPLimitedWebPartManager.Web // SPDisposeCheck error

I have used SPDisposeCheck command line utility on following code and it gives comments as "Dispose Explicitly Called on SPLimitedWebPartManager.Web". I carefully analyse my code for any ...
0
votes
2answers
35 views

SPDisposeCheck equivalent for SharePoint Powershell scripts

I have used SPDisposeCheck tool for SharePoint Visual Studio SharePoint solutions. I want to know is there any such tool available to check SharePoint PowerShell Script object disposal? I have ...
3
votes
2answers
838 views

SharePoint 2013 Dispose checker

I've used SPDisposeCheck for SP2007/2010 and find it very useful for finding undisposed sp objects, but from this blog post, it's mentioned that it's no longer working for 2013. Is there any ...
1
vote
0answers
195 views

SPLongOperation usage and SPDisposeCheck

I'm trying to use SPLongOperation like in the snippet below. When I run SPDisposeCheck, I get an error. So I have these questions: Wouldn't the using statement call Dispose() on SPSite when ...
2
votes
3answers
964 views

SPDispose false positive

I got many warnings from the SPDispose checker like this: ID: SPDisposeCheckID_140 Module: xx.xx.dll Method: xx.xx.Layouts.xx.UpdateWorkspace.Page_Load(System.Object,System.EventArgs) Statement: ...
0
votes
2answers
529 views

SPDisposeCheck on SPLimitedWebPartManager ImportWebPart method

(This question is related to MOSS 2007. Might also apply to Sharepoint 2010) I have run SPDisposeCheck v1.3.1 to detect memory leaks in a solution. There is one issue found that I can't seem to ...
2
votes
2answers
92 views

SPDisposeChecker, is this a false positive?

We have the following code: foreach (SPWeb website in collectionOfWebSites) { // Some code, no dispose of website } SPDisposeChecker is reporting it as a memory leak. Should ...