Click to See Complete Forum and Search --> : Program Hangs at mesh.SetIndexBufferData(indices, LockFlags.None)


Eggman002
February 26th, 2005, 04:12 PM
I am working on a program that feeds a landscape (semi flat rectanglular surface) in to a mesh. When the program reaches the point where it sets the index buffer:

mesh.SetIndexBufferData(indices, LockFlags.None);

It hangs. I am confident that this is the line where it hangs. Any ideas what would cause it to hang here?

On a side note, the mesh was created with:

mesh = new Mesh(numfaces, numverts, 0, CustomVertex.PositionNormalTextured.Format, device);