Page 1 of 1
Finding the underlying class for string
Posted: Mon May 23, 2011 3:05 am
I am looking for memory that is not released in our application.
When I compare 2 snapshots, the class with the highest delta is System.String.
How do I find out the underlying class that are using these strings?
Re: Finding the underlying class for string
Posted: Mon May 23, 2011 10:50 pm
The root paths of the string will provide information about who's using the strings. If you double-click on the String class in the Types list, the root paths of the strings will be presented in the the Type details (to the right). To get information about new instances created since the comparison snapshot, select "Sort by: New live instances". If you browse to a root path that keeps many string instances alive, you should hopefully be able to identify an instance or a set of instances that are using the strings. Once you have located these instances, you can get further information by double-clicking the item in the root path.