Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    You're probably using the wrong array size somewhere and drawElements is trying to access an address outside of it's buffer. Can you put up the code leading up to drawElements? Anything related to buffers, pointers, etc would be relevant. Commented Oct 11, 2012 at 19:53
  • Added. Hope that helps. As you can see my vertex/indices are very simple. The same calls runs perfectly fine until the crash. If GUARD_MALLOC is not on, I can see that m_pVertexData and m_pIndices have not changed. Commented Oct 11, 2012 at 20:38
  • 1
    Is stride the same as m_stride? What size is that giving you? Commented Oct 11, 2012 at 20:43
  • When I coped and pasted the code I missed the stride = m_stride line. Stride is 8. I'll add the struct for m_pVertices to the question. Commented Oct 11, 2012 at 21:27
  • did you ever get an answer for this? having something similar... Commented Jun 3, 2013 at 14:37