编译没问题但是运行出现 Unhandled exception Access violation reading location,是内存访问的什么问题?
代码如下:
hr = D3DXCreateMeshFVF(
(DWORD)_numTriangles, //这里的问题么?
(DWORD)_numVertices, //
D3DXMESH_MANAGED,
TerrainVertex::FVF,
_device,
&_Mesh);
.......................
............................
_Mesh->UnlockIndexBuffer(); ------------Unhandled exception at 0x71d86e20 in Picking.exe: 0xC0000005: Access violation reading location 0x0f8a1301.
..........................
谁能告诉我是怎么回事? 拜谢!