在調試的時候分別出發(fā)了一個斷點,位置分別如下,請問是有上面問題嗎?
在測試普通的時候
void __cdecl _free_base (void * pBlock)
{
? ? ? ? int retval = 0;
? ? ? ? if (pBlock == NULL)
? ? ? ? ? ? return;
? ? ? ? RTCCALLBACK(_RTC_Free_hook, (pBlock, 0));
? ? ? ? retval = HeapFree(_crtheap, 0, pBlock);
? ? ? ? if (retval == 0)
? ? ? ? {
? ? ? ? ? ? errno = _get_errno_from_oserr(GetLastError());
? ? ? ? }
}
以及在測試塊的時候
__forceinline void * __cdecl _heap_alloc (size_t size)
{
? ? if (_crtheap == 0) {
? ? ? ? _FF_MSGBANNER(); ? ?/* write run-time error banner */
? ? ? ? _NMSG_WRITE(_RT_CRT_NOTINIT); ?/* write message */
? ? ? ? __crtExitProcess(255); ?/* normally _exit(255) */
? ? }
? ? return HeapAlloc(_crtheap, 0, size ? size : 1);
}
2019-11-26
0.0