随笔分类 - 调试
Memory leaks detection in a Windows Service written in C++
摘要:Memory leaks detection in a Windows Service written in C++ On January 25, 2020 By Artem Razin In Uncategorized Introduction This article will demonstr
阅读全文
Deleaker is ready for Visual Studio 2022!
摘要:Deleaker is ready for Visual Studio 2022! On November 3, 2021 By Artem Razin In Uncategorized Since Microsoft announced the first preview of Visual St
阅读全文
Unmanaged memory leaks in .NET(ust)
摘要:Unmanaged memory leaks in .NET On March 19, 2021 By Artem Razin In Uncategorized Unmanaged memory leaks in C# Contents Why do unmanaged memory leaks h
阅读全文
How to fix memory leaks in C/C++ using WinDbg(+ust)
摘要:How to fix memory leaks in C/C++ using WinDbg On May 30, 2021 By Artem Razin In Uncategorized Contents Introduction Examples of memory leaks The commo
阅读全文
How to Configure Symbols in Sysinternals' Process Explorer
摘要:set _NT_SYMBOL_PATH = srv*F:\Yangl\DebuggingPaths\dbg*http://msdl.microsoft.com/download/symbols;set _NT_SOURCE_PATH = p1;p2; Summary of Steps Needed
阅读全文
Sharing assemblies between w3wp processes for reduce memory usage
摘要:Problem We are publishing a lot of microservices on one machine, i.e.: 30 instances and every one use 150 – 300 mb. A lot of microservices use the sam
阅读全文
Monitoring Performance Using WMI
摘要:Learn Previous Versions Windows Scripting Scripting Clinic How's My Driving? Monitoring Performance Using WMI Article 06/30/2006 31 minutes to read Gr
阅读全文
WMI Scripting Primer
摘要:WMI Scripting Primer: Part 1 Article 06/30/2006 25 minutes to read Greg Stemp, Dean Tsaltas, and Bob WellsMicrosoft Corporation Ethan WilanskyNetwork
阅读全文
How to find what is in unmanaged memory in Dump by WinDBG? (ust) Marshal.AllocHGlobal(1024 * 1024 * 1024 ) virtualalloc
摘要:How to find what is in unmanaged memory in Dump by WinDBG I run for Dump File in WinDbg command !address -summary I results are something like this Ho
阅读全文
Public and Private Symbols
摘要:Public and Private Symbols When a full-sized .pdb or .dbg symbol file is built by a linker, it contains two distinct collections of information: the p
阅读全文
Windbg下追寻MFC程序抛CDBException异常回忆录 [!sym noisy .reload /f /i xxx.dll]
摘要:某正在运行的程序突然抛出异常,我们直接上Windbg查看异常记录,.exr -1;!gle;结果并没有相关信息,异常被截获后并没有抛出来,这个错误对话不是系统的而是本身程序代码弹出的。 kp查看UI线程调用栈 0:000> kp # ChildEBP RetAddr 00 00197eac 7713
阅读全文
使用Visual Studio 自带的诊断工具(Diagnostic Tools)诊断程序的内存问题
摘要:使用vs2017自带的诊断工具(Diagnostic Tools)诊断程序的内存问题 前言 一般来说.NET程序员是不用担心内存分配释放问题的,因为有垃圾收集器(GC)会自动帮你处理。但是GC只能收集那些不再使用的内存(根据对象是否被其它活动的对象所引用)来确定。所以如果代码编写不当的话,仍然会出现
阅读全文
An attempt to set a process's DebugPort or ExceptionPort was made
摘要:How to resolve "Cannot debug pid , NTSTATUS 0xC0000048" - "An attempt to set a process's DebugPort or ExceptionPort was made ..." 2011/10/21 Once I fo
阅读全文
浙公网安备 33010602011771号