Red Gate forums :: View topic - How do I translate the _methodPtr to a method?
Return to www.red-gate.com RSS Feed Available

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

How do I translate the _methodPtr to a method?

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
anders.vejen



Joined: 24 Nov 2011
Posts: 3

PostPosted: Tue Jun 05, 2012 8:37 am    Post subject: How do I translate the _methodPtr to a method? Reply with quote

Hi

I am in the middle of fixing a lot of memory leaks in our WinForms application, and one thing that is frustrating me about this otherwise brilliant product, is that when chasing delegates that reference and thereby keep instances alive, the method the delegate point to, is not available.

I get:

Delegate:
_methodBase NULL
_methodPtr +0x0f88f60c
_methodPtrAux +0x00000000
+Target <name of class containing method>

So I know which class, but not which method. How can I translate the "_methodPtr +0x0f88f60c" to an actual method?
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 230

PostPosted: Wed Jun 06, 2012 10:52 pm    Post subject: Reply with quote

You may be able to obtain the method names by running Windbg while the process is still running (http://stackoverflow.com/questions/3668642/get-method-name-form-delegate-with-windbg).
_________________
Jessica Ramos
Technical Support
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