Debug Assertion Failed: _CrtIsValidHeapPointer(block)

If you defined a pointer such as new T* [size]

you should delete it with delete[] instead of delete

Leave a Comment