Strange error using Debug Runtimes...
no, the draw would not fail on the retail version as little or no parameter
validation is done in retail, thats the entire point of the debug version.
you have a problem in your data, and it accidentally works in release mode.
this app may crash on another hw vendors' part, or on a new driver rev on
the current part.
PM : DirectX SDK, Managed DirectX, WindowsXP Inbox 3D Screensavers, and a
few more bits and bobs
This posting is provided "AS IS" with no warranties, and confers no rights.
> I'm working with DX8.1.
> I'm trying to render an indexed triangle list. It works fine when I use
> retail version, but it fails when I switch to the debug version. The debug
> output generates the following error:
> 'Index stream does not have required number of indices.
> DrawIndexedPrimitive failed.'
> The index buffer should have the required number of indices, otherwise, it
> would fail with the retail version, too. Wouldn't it?
> This is kinda driving me nuts. Is there anything in particular that I'd
> to be aware of when switching from debug to retail?
> Other potentially useful information:
> - The app is using software vertex processing
> - I'm creating my VB and IB with the WRITEONLY flag and DEFAULT pool.
> - I'm locking my buffers with the NOSYSLOCK flag.
> - The vertex buffer contains nine vertices and the index buffer
> 12 indices.
> - I'm calling DrawIndexedPrimitive with nine vertices and 12 indices.
> - I'm also drawing a reference grid as a non-indexed line list. This
> renders just fine whether I'm using Debug or Retail versions.