I'm creating this VS2010 Addin project in C#, which will be used to debug my other c++ projects. The data I want to process is stored in a block of memory of the c++ project. In the VS2010 watch window i can see the array of memory by a expression like "&myobject,100".
In my addin project, I try using expression "&myobject,100", this only return me a value of the address, same as "&myobject". I was expecting an array of bytes, or any other way to get me that block of memory.
The stupid workaround is using a loop to get each byte of that memory with the expression of "*(char *)&myobject[i]"but this is just too slow.
From my research,it looks like I can implement a Expression evaluator to read memory and return object containing that memory's data. How to do that? What's the simplest way to do that? (implementing minimal amount of interfaces etc).
Thanks