How to understand the -min/-max options of !dumpheap in WinDBG SOS

前端 未结 1 1695
-上瘾入骨i
-上瘾入骨i 2021-01-14 20:04

The documentation said it\'s used for limit the size of the output object, but based on my test, it\'s not what I expected:

0:000> !dumpheap -mt 000007fee         


        
1条回答
  •  囚心锁ツ
    2021-01-14 20:40

    WinDbg's default number format is hexadecimal. 0x400 is 1024 and 0x399 is 921, that explains the output. If you want decimal numbers, use the 0n prefix, e.g. 0n400 and 0n399.

    0 讨论(0)
提交回复
热议问题