Provides information on using the debug heap.
提供使用侦错堆积的资讯。
This section provides a detailed look at the CRT debug heap.
本章节内容提供CRT侦错堆积的详细检视。
The debug heap catches two bugs and a data error in the second example.
侦错堆积会在第二个范例中找到两个错误和一个资料错误。
Describes the five allocation types that memory blocks are assigned to in the debug heap.
描述五种在侦错堆积中记忆体区块被指派至的配置类型。
All the resulting memory blocks in the debug heap are connected in a single linked list, ordered according to when they were allocated.
调试堆中产生的所有内存块在单个链接列表中连接起来,按照分配时间排序。
By changing this flag, you can instruct the debug heap to check for memory leaks when the program exits and report any leaks that are detected.
您可以变更这个旗标,来指示侦错堆积在程序结束时检查记忆体遗漏,并且报告任何侦测到的遗漏。
The simplest way to identify the specific heap allocation call that went bad is to take advantage of the unique allocation request number associated with each block in the debug heap.
标识发生错误的特定堆分配调用的最简单方法是利用与调试堆中的每个块关联的唯一分配请求编号。
When you request a memory block, the debug heap manager allocates from the base heap a slightly larger block of memory than requested and returns a pointer to your portion of that block.
当您要求记忆体区块时,侦错堆积管理员会从基底堆积配置比要求稍微大一点的记忆体区块,并且传回此区块部分的指标。
When you free a memory block, the debug heap automatically checks the integrity of the buffers on either side of your allocated area and issues an error report if overwriting has occurred.
当释放内存块时,调试堆自动检查已分配区域两侧的缓冲区的完整性,如果发生覆盖,将发出错误报告。
An application can keep special track of a given group of allocations for debugging purposes by allocating them as this type of memory block, using explicit calls to the debug heap functions.
应用程序可以使用这种记忆体区块类型配置、使用侦错堆积函式的明确呼叫,继续追踪指定的配置群组,以达到侦错的目的。
Because the string memory is released by code executing inside the DLL, the correct local heap is used, and no debug assertion results.
因为字符串内存是由在DLL内部执行的代码释放的,所以使用的是正确的本地堆,没有调试断言结果。
Heap layout will be the cause of about ninety percent of the apparent problems when an application works in debug, but not release.
在导致应用程序在调试时可运行,但在发布时不运行的问题中,约有百分之九十都是由堆布局引起的。
Because heap layout is different between release and debug versions, a memory overwrite might not create any problems in a debug build, but may have catastrophic effects in a release build.
由于堆布局在发布版本和调试版本间不同,因此内存覆盖在调试版本中可能不会引起任何问题,但在发布版本中可能导致灾难性的后果。
Describes the Debug versions of heap functions.
描述堆积函式的侦错版本。
The Debug versions of the heap functions call the standard or base versions used in Release builds.
堆积函式的侦错版本是呼叫发行版本里使用之函式的标准或基底版本。
The Debug versions of the heap functions call the standard or base versions used in Release builds.
堆积函式的侦错版本是呼叫发行版本里使用之函式的标准或基底版本。
应用推荐