1. Why does DumpStackObject show an Exception but DumpHeap does not?
2. How can I view the content of Exception? Using DumpObj on the
column value colon only yields "Not a managed object" output. What am
I doing wrong?
0:014> !DumpHeap -type Exception
succeeded
Loaded Son of Strike data table version 5 from "C:\WINDOWS
\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll"
Address MT Size
0746100c 79b94c74 64
0746104c 79b94dac 64
0746108c 79b94ee4 64
074a64cc 79bc806c 64
074b16d0 79c2852c 64
074b1710 79c2852c 64
074b1750 79c2852c 64
074b1790 79c2852c 64
074b6008 7b324b8c 64
07692190 79bc806c 64
total 10 objects
Statistics:
MT Count TotalSize Class Name
7b324b8c 1 64
System.ComponentModel.Design.CheckoutException
79b94ee4 1 64 System.ExecutionEngineException
79b94dac 1 64 System.StackOverflowException
79b94c74 1 64 System.OutOfMemoryException
79bc806c 2 128
System.Runtime.InteropServices.ExternalException
79c2852c 4 256
System.Runtime.InteropServices.COMException
Total 10 objects
0:000> !DumpStackObjects
ESP/REG Object Name
0012e870 137e5530 System.Security.PermissionList
0012e880 137e5530 System.Security.PermissionList
0012e8ac 79b948fc System.Exception
0012edd8 137e5530 System.Security.PermissionList
0012edf0 137e5530 System.Security.PermissionList
0012ee04 137e5530 System.Security.PermissionList
0:000> !DumpObj 79b948fc
Name: System.Exception
MethodTable 0x79b947ac
EEClass 0x79b94850
Size 64(0x40) bytes
mdToken: 02000012 (c:\windows\microsoft.net\framework
\v1.1.4322\mscorlib.dll)
FieldDesc*: 79b948b4
MT Field Offset Type Attr Value
Name
79b947ac 400001d 4 CLASS instance 10000023
_className
79b947ac 400001e 8 CLASS instance 90000018
_exceptionMethod
79b947ac 400001f c CLASS instance 79b947ac
_exceptionMethodString
79b947ac 4000020 10 CLASS instance 10000024
_message
79b947ac 4000021 14 CLASS instance 9000001c
_innerException
79b947ac 4000022 18 CLASS instance 79b947ac
_helpURL
79b947ac 4000023 1c CLASS instance 10000025
_stackTrace
79b947ac 4000024 20 CLASS instance 90000020
_stackTraceString
79b947ac 4000025 24 CLASS instance 79b947ac
_remoteStackTraceString
79b947ac 4000026 2c System.Int32 instance 1073741864
_remoteStackIndex
79b947ac 4000027 30 System.Int32 instance 2042185644
_HResult
79b947ac 4000028 28 CLASS instance 10000026
_source
79b947ac 4000029 34 System.Int32 instance 805306407
_xptrs
79b947ac 400002a 38 System.Int32 instance 1073741868
_xcode
0:000> !DumpObj 10000024
Not a managed object