i have a reproducible heap error that visual studio 2017 shows after my app has exited:
until now, _CrtSetBreakAlloc has showed me the problem, but unfortunately not anymore. i have 7 dlls and one exe, in each one i put _CrtSetBreakAlloc at the (in my opinion) earliest position.{5979} normal block at 0x02D553D8, 772 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
AFAIK the heap error probaly occurs BEFORE i set _CrtSetBreakAlloc? So is there a way to know for sure the earliest possible position to put _CrtSetBreakAlloc? I have tested _CrtSetBreakAlloc successfully with some other allocation, so the mechanism itself works.
furthermore i tried:
Code: Select all
int YourAllocHook(int nAllocType, void *pvData,
size_t nSize, int nBlockUse, long lRequest,
const unsigned char * szFileName, int nLine) {
if (nAllocType == _HOOK_ALLOC && nSize == 772)
int breakHere = 0;
if (nBlockUse == _CRT_BLOCK)
return(TRUE);
return true;
}
thank you for your thoughts.