Assertion Error: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
I get the error in the title in the following code: std::vector<short> GetIndicesFromID3DXMesh(ID3DXMesh* model) { //LPVOID * ppData; DWORD stride = sizeof(short); BYTE* ibptr = NULL; short* indices = new short[model->GetNumFaces() * 3]; std::vector<short> copy; model->LockIndexBuffer(0, (LPVOID*)&indices); ...