Код: Выделить всё
unsigned int* renderableShapeIndices = new unsigned int[aNumberCreatedAtRuntime];
// Do something
delete[] renderableShapeIndices;
Код: Выделить всё
1st breakpoint:
A breakpoint instruction (__debugbreak() statement or a similar call) was executed in Main.exe.
2nd breakpoint:
Unhandled exception at 0x00007FF8C3B8C729 (ntdll.dll) in InTimeEngine2D.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FF8C3BF7780).
Еще один интересный фактор заключается в том, что это происходит только в режиме отладки. В режиме выпуска этого не происходит.
Подробнее здесь: https://stackoverflow.com/questions/726 ... -was-execu