void
CSoView::OnLButtonDblClk(
UINT
nFlags, CPoint point)
{
AfxMessageBox(
"Hi"
);
char
p =
'a'
;
memset
(&p-100, 0, 100);
CView::OnLButtonDblClk(nFlags, point);
}
k 10000
Raymond wrote: k 10000
谢谢张老师的回答。但我试了一下,好像不对,下面是从调试起来拷贝下的内容:
0:000> gModLoad: 76300000 7631d000 C:\WINDOWS\system32\IMM32.DLLModLoad: 77da0000 77e49000 C:\WINDOWS\system32\ADVAPI32.dllModLoad: 77e50000 77ee2000 C:\WINDOWS\system32\RPCRT4.dllModLoad: 77fc0000 77fd1000 C:\WINDOWS\system32\Secur32.dllModLoad: 62c20000 62c29000 C:\WINDOWS\system32\LPK.DLLModLoad: 73fa0000 7400b000 C:\WINDOWS\system32\USP10.dllModLoad: 77be0000 77c38000 C:\WINDOWS\system32\msvcrt.dllModLoad: 61be0000 61bed000 C:\WINDOWS\system32\MFC42LOC.DLLModLoad: 5adc0000 5adf7000 C:\WINDOWS\system32\uxtheme.dllModLoad: 67340000 6746f000 C:\Program Files\360safe\safemon\safemon.dllModLoad: 7d590000 7dd83000 C:\WINDOWS\system32\SHELL32.dllModLoad: 77f40000 77fb6000 C:\WINDOWS\system32\SHLWAPI.dllModLoad: 76990000 76acd000 C:\WINDOWS\system32\ole32.dllModLoad: 770f0000 7717b000 C:\WINDOWS\system32\OLEAUT32.dllModLoad: 76bc0000 76bcb000 C:\WINDOWS\system32\PSAPI.DLLModLoad: 63000000 630e6000 C:\WINDOWS\system32\WININET.dllModLoad: 003e0000 003e9000 C:\WINDOWS\system32\Normaliz.dllModLoad: 1a400000 1a532000 C:\WINDOWS\system32\urlmon.dllModLoad: 5dca0000 5de88000 C:\WINDOWS\system32\iertutil.dllModLoad: 77bd0000 77bd8000 C:\WINDOWS\system32\VERSION.dllModLoad: 71a20000 71a37000 C:\WINDOWS\system32\WS2_32.dllModLoad: 71a10000 71a18000 C:\WINDOWS\system32\WS2HELP.dllModLoad: 77180000 77283000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.3744_x-ww_d9c64cc6\comctl32.dllModLoad: 5d170000 5d20a000 C:\WINDOWS\system32\comctl32.dllModLoad: 74680000 746cb000 C:\WINDOWS\system32\MSCTF.dllModLoad: 73640000 7366e000 C:\WINDOWS\system32\msctfime.ime(162c.1630): Access violation - code c0000005 (first chance)First chance exceptions are reported before any exception handling.This exception may be expected and handled.eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 esi=00144430 edi=00000000eip=00000000 esp=0012fb44 ebp=0012fba4 iopl=0 nv up ei pl zr na pe nccs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=0001024600000000 ?? ???0:000> k 10000Requested number of stack frames (0x10000) is too large! The maximum number is 0xffff. ^ Range error in 'k 10000'
因为有递归调用,所以溢出时,线程的栈帧数会很多,k命令默认显示20个栈帧,看不完整,因此需要指定一个比较大的值,输入时多大了个0,应该是k 1000