   Stream not setting?
  I feel I'm making a very simple mistake, so I've posted this in For Beginners.My program intializes and runs fine. However, nothing is drawn. The background is cleared in the render loop as usual, and the scene begins and ends normally. However, I'm generating TONS of FAILEDs during my render loop due to two lines of code. One is:D3D_Device->SetStreamSource(0,VertexBuffer, 0, sizeof(Vertex))And the other is:D3D_Device->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, LMapVerts*HMapVerts, 0, (LMapVerts-1)*(HMapVerts-1)*2)I'm pretty sure that the second is only failing because of the first, however. The objects "VertexBuffer" and "Vertex" have been defined Globally, instead of being passed through the render function - so as to simplify things further. Both have the values that they are supposed to have at runtime (I've checked using the runtime debugger) and yet the SetStreamSource call still fails! Can someone help me here?   
  Bump - can't someone help me with this? I can post the cpp or exe file on the internet if you want just please help me out here.   ;  Well are you absolutly sure that VertexBuffer isn't null and that it's creation didn't fail?   