I have been trying to dispose the strings .I was not sucessfull in doing so they are being introduced from RuntimePropertyInfo , Pinned GC Handle () and my 3rd party contol's which are poining to string.
In this below artcile from MSDN, it states to worry less about any string and array objects less than 85,000 bytes that is LOH.
(http://blogs.msdn.com/b/tess/archive/2 ... mory.aspx)
So my question now is , should we only worry about object greater than 85,000 bytes.If so, can we force the LOH to clear.As far as I know,Gen # 2 clean up triggers LOH to clean.
Instead of looking at string and array types, you can use Held bytes column in the Types list to identify types which use a lot of memory. If you have a document instance that are using a lot of strings, the held bytes value for the document type will include the size of all those string, even if there is only a single instance of the document. For more information about held bytes, see http://memprofiler.com/onlinedocs/helda ... tances.htm.
SciTech Software AB
Users browsing this forum: No registered users and 2 guests