views:

110

answers:

2

Hi!

Is there a tool, maybe a plugin for visual Studio or so, that visualizes for me the memoryalignment of my classes and structs?

thx!

A: 

It is embedded into Visual Studio Debugger. It's called "Watch". You can see the address of each item if you "+" some class instance name.

alemjerus
hey and thanks!I don't want to see the adresses, i'd like to see a nice graphic
Mat
Then no, there's no such a tool. Or you can write "#pragma pack(push, 1)" and draw yourself a pretty straight line.
alemjerus
hm. is my request not comprehensible? i think such a tool would be quite convenient
Mat
I don't think the tool would provide anything useful.
Martin York
and why you think so?
genesys
+1  A: 

You might be interested in using Cruncher#.

Reference: original Maciej Sinilo blog post about Cruncher#.

Gregory Pakosz