随笔分类 - C++
避免在MFC程序中混合debug与Release exe or dll发布
摘要:Surviving the Release Version And the world crumbles to dust. You get memory access failures, dialogs don't come up, controls don't work, results come
阅读全文
VC6中的CString做为结构下成员变量占用内存不放问题,Release有问题, debug下没事儿!!!THIS_FILE
摘要:对标题给出一个简而言之的结论:MFC经过几次的效能更新的版本,修复一些问题还会产生另一个问题 Realse版本的CString保留了所有512字节以下申请字符串的缓冲区,并未释放,说是为了减少内存碎片增加性能。 Struct { CStrng title; int a; .... }IoriStru
阅读全文
WinDbg : Parsing Arrays In the Debugger
摘要:Many a times data structs like arrays need parsing in windbg. These don't lend themselves as well as the LIST_ENTRY based structs do, because the debu
阅读全文
Understand C++ vtable from assembly code
摘要:Understand C++ vtable from assembly code (part 1) A glance at vtable implementation For simplicity, part 1 only discusses how vtable works with single
阅读全文
Windbg: going from vftable to c++ class
摘要:Windbg: going from vftable to c++ class As part of an assignment, I am delving into the world of Internet Explorer, and am trying to figure out exactl
阅读全文
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
阅读全文
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
阅读全文
如何在VC++ 6.0中实现拖动指令改变执行路径 (指令飞越)?
摘要:前文提要: 在VC6.0之后出现的VS系列开发工具都具有的调试功能:移动指针更改执行流,VC6不支持这个UI操作。 调试程序暂停时,源代码或“反汇编”窗口边距处的黄色箭头标记要运行的下一条语句的位置。 你可以通过移动此箭头来更改要运行的下一条语句。 你可以跳过代码,或者返回上一行。 在某些情况下移动
阅读全文
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
阅读全文
CtrlList 虚拟列表加载技术
摘要:虚拟列表控件 虚拟列表控件是具有 LVS_OWNERDATA 样式的列表视图控件。 此样式使控件能够支持最多为 DWORD 的项计数(默认项计数仅扩展到 int)。 但是,此样式具有的最大优势是,允许内存中任何时候都只有一部分数据项。 这样,虚拟列表视图控件就可以与大型信息数据库一起使用,而这些数据
阅读全文
Fill a List with Large Amount of Data
摘要:Fill a List with Large Amount of Data 2013.02.06 by Ovidiu Cucu In my opinion, making database queries in separate threads in order to avoid UI blocki
阅读全文
Win32内存管理
摘要:Learn Windows “应用” Win32 桌面技术 系统服务 内存管理 关于内存管理 2022/09/22 32 位 Microsoft Windows上的每个进程都有其自己的虚拟地址空间,可实现高达 4 GB 内存的寻址。 64 位Windows的每个进程都有 8 TB 的虚拟地址空间。
阅读全文
工作线程基类,静默安装
摘要:#if !defined(AFX_BASEWORKTHREAD_H__D104C15C_8BCD_475B_91C4_4960EBE866A4__INCLUDED_) #define AFX_BASEWORKTHREAD_H__D104C15C_8BCD_475B_91C4_4960EBE866A4
阅读全文
浙公网安备 33010602011771号