1 gflags /i test.exe +ust
2 用WINDBG启动test。exe 运行后输出: {104} client block at 0x01418238, subtype 0, 1111 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
显示内存泄露,然后用命令
0:000> !heap -p -a 0x01418238
address 01418238 found in
_HEAP @ 1410000
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
01418210 0093 0000 [00] 01418218 0047b - (busy)
请教下为什么就是打印不出调用栈的?
TEST.EXE 和 windbg 都是X86的
谢谢
0:000> g
Detected memory leaks!
Dumping objects ->
c:\users\aaa\desktop\consoleapplication1\consoleapplication1.cpp(19) : {104} client block at 0x01418238, subtype 0, 1111 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
Object dump complete.
eax=00000000 ebx=77bac0c0 ecx=00000002 edx=00000000 esi=00000000 edi=00000000
eip=77b01028 esp=00f7f9a4 ebp=00f7f9bc iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
ntdll!ZwTerminateProcess+0xc:
77b01028 c20800 ret 8
0:000> !heap -p -a 0x01418238
address 01418238 found in
_HEAP @ 1410000
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
01418210 0093 0000 [00] 01418218 0047b - (busy)