I've read other people have been had similar problems but can't seem to find a clear solution. I have an MFC app and suddely seem to be having problems using the delete operator. Wherever I use it it is causing a user breakpoint to be triggered in free.c at this line:
#endif /* CRTDLL */
else // __active_heap == __SYSTEM_HEAP
#endif /* _WIN64 */
retval = HeapFree(_crtheap, 0, pBlock);
if (retval == 0)
errno = _get_errno_from_oserr(GetLastError());
I can literally just do this in a function and it causes this to be thrown, I'm not sure what has changed in this project to make this happen :-/...
char* test = new char;
delete test; // triggers breakpoint.
Can someone please help? This is strange to me :(
Many thanks in advance,