I'm looking for a problem with some particular code that's written in C and have been looking around the line that calls the "user break point" all of today just about. The HeapAlloc function is working fine and I've inspected the memory around pObjects (especially near the end) to make sure it's not an overrun and that everything is alloced cleanly.
nRecordMax is at 2000 here, but it fails even if I just insert a 1003 in its place (the heap is allocated to 1000 to begin with). All other code seems to be fine. Any ideas
pTempObjectReAlloc = HeapReAlloc (GetProcessHeap(), HEAP_ZERO_MEMORY,
g_sGlobalStruct.pCurrentDS->pObjects,
(g_sGlobalStruct.pCurrentDS->nRecordMax * sizeof(DS_OBJECT_STRUCT)));