Usage of SOS.dll to measure object size
March 2, 2009
Make sure ‘enabled managed debugging’ is checked in the project properties.
Add the directory where SOS.dll is located to the PATH environment variable,
which is in the (C:\Windows\microsoft.net\framework\v2.0.50215)
At a breakpoint, in the immediate windows, execute :
.load sos.dll
!help (shows a list of debugger commands)
Common ones (for looking at GridView objects as example):
!DumpHeap – type GridView
!DumpObj 0×00a8197 (or whatever address)
Comments
Got something to say?
You must be logged in to post a comment.

