Red Gate forums :: View topic - Instance value only shows up as "string"?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

Instance value only shows up as "string"?

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
brianpe



Joined: 19 Jan 2010
Posts: 1

PostPosted: Tue Jan 19, 2010 7:45 pm    Post subject: Instance value only shows up as "string"? Reply with quote

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.
Back to top
View user's profile Send private message
AndrewH



Joined: 17 Aug 2006
Posts: 137

PostPosted: Wed Jan 20, 2010 12:09 pm    Post subject: Reply with quote

.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).
_________________
Andrew Hunter
Software Developer
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group