not disposed Objects

Wow what a headline, what now English or German… Well, it’s about the objects that were not cleaned up by me (I don’t know what happens to you:-)). So disposed () not availbale and in the log of SharePoint we get a raised index finger to take care of the “room cleaning”. Good tip, but where in God’s name arose the object, above that is silent the log.
But we can elicit it by putting a registry entry under:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\HeapSettings
If heap settings are not already present, please create the key.
Within heap settings, you only have to create a DWORD value “SPRequestStackTrace” with the value 1.
From now on, the log also provides information on where and how the object was created.
The SPLogviewer can also be helpful here (find it at http://splogviewer.codeplex.com/)
Have fun
Werbung

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed