| Author |
Message |
anders.vejen
Joined: 24 Nov 2011 Posts: 3
|
Posted: Tue Jun 05, 2012 8:37 am Post subject: How do I translate the _methodPtr to a method? |
|
|
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 |
|
 |
jessica.ramos
Joined: 23 Apr 2012 Posts: 79
|
Posted: Wed Jun 06, 2012 10:52 pm Post subject: |
|
|
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 |
|
 |
|
|
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