我调试,竟然程序跑到这里来了
sms88 2006-12-15 02:39:50 我关闭对话框的程序,就跑到那句去了,按F10就会弹出一对话框:
Unhandled exception in NewClient.exe(MSVCRTD.DLL):0xC0000005:Access Violation
我无从下手了
_CRTIMP void __cdecl _CrtMemCheckpoint(
_CrtMemState * state
)
{
int use;
_CrtMemBlockHeader * pHead;
if (state == NULL)
{
_RPT0(_CRT_WARN, "_CrtMemCheckPoint: NULL state pointer.\n");
return;
}
_mlock(_HEAP_LOCK); /* block other threads */
state->pBlockHeader = _pFirstBlock;
for (use = 0; use < _MAX_BLOCKS; use++)
state->lCounts[use] = state->lSizes[use] = 0;
for (pHead = _pFirstBlock; pHead != NULL; pHead = pHead->pBlockHeaderNext)
{
if (_BLOCK_TYPE(pHead->nBlockUse) >= 0 && _BLOCK_TYPE(pHead->nBlockUse) < _MAX_BLOCKS)//程序既然跑到这里来了..........
{
state->lCounts[_BLOCK_TYPE(pHead->nBlockUse)]++;
state->lSizes[_BLOCK_TYPE(pHead->nBlockUse)] += pHead->nDataSize;
}
else
{
_RPT1(_CRT_WARN, "Bad memory block found at 0x%08X.\n", (BYTE *)pHead);
}
}
state->lHighWaterCount = _lMaxAlloc;
state->lTotalCount = _lTotalAlloc;
_munlock(_HEAP_LOCK); /* release other threads */
}