I m在C++运行一个迭代程序,在完成第一个迭代之后,我从第二个错误开始出现以下错误:
Heap block at 00000000212005D0 modified at 0000000021200674 past requested size of 94 Windows has triggered a breakpoint in myProject.exe.
This may be due to a corruption of the heap, which indicates a bug in myProject.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while myProject.exe has focus.
产出窗口可能有更多的诊断信息。
在显示这一错误的同时,视力-C++打开了破碎机。
extern "C" _CRTIMP int __cdecl _CrtIsValidHeapPointer(
const void * pUserData
)
{
if (!pUserData)
return FALSE;
if (!_CrtIsValidPointer(pHdr(pUserData), sizeof(_CrtMemBlockHeader), FALSE))
return FALSE;
return HeapValidate( _crtheap, 0, pHdr(pUserData) );
}
这一错误的原因是什么?