Memory profiling for .NET developers
Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour
Hello -- it's my first time with ANTS Memory Profiler. I'm looking at a leak where new strings are introduced. But strings are common, so I would either need to see the value of the string or the allocation stack of who created it. in the "what to look for in the instance list" section of documentation it shows a nice screen grab that shows a small + sign for values where you can expand them, and it states that for primitives the actual values are shown. But in my case, I don't see the string value. I only see "string" printed in the value column.
Is there any way to see the values of the strings?
Note: I'm running against a pre-release version of .NET 4, which may complicate things. My app can't run against prior versions of .NET.
- Posts: 1
- Joined: Tue Jan 19, 2010 7:31 pm
.NET 4 support is still fairly experimental in both profilers; unfortunately this means there are still likely to be some bugs. In this case, it looks like some of the changes made to the CLR have caused the code that reads strings from memory to fail, so the values are not available. Other field values are still available, however. We're currently planning on updating the profiler to fully support .NET 4 once Microsoft has made the final release available.
You should still be able to determine what the strings are being used for by looking at the class reference explorer (for the string class as a whole; it can also be used to help narrow down the instance list to specific sets of strings) or the object retention graph (for a specific string).
Red Gate Software Ltd.
- Posts: 134
- Joined: Thu Aug 17, 2006 3:44 pm
Return to ANTS Memory Profiler Previous Versions
Who is online
Users browsing this forum: No registered users and 0 guests