Thanks for the reply. When I implement the code, I get this error:
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
Last edited on
I found the problem. I was trying to deallocate the memory twice. I did not check in the object destructors for NULL pointers.