windbg内存泄露排查

马肯尼煤牙巴骨 / 2023-05-19 / 原文

到 windbg目录下为想调试的程序开放用户堆栈 关闭的话-ust

.\gflags.exe -i "D:\Users\user\Documents\source\repos\dv-detector-navigate\dv_ui\win32_bin_debug\dv_detector_ui.exe" +ust

用windbg打开或附加调试

.symfix
.reload
!heap -s
!heap -stat -h  <heap address>
!heap -flt s <address>
!heap -p -a <address>