access violation in release mode

I'm drawing multiple objects in directx11 with one single matrixBuffer (which is constant buffer).
When I update my matrixBuffer for second object in release mode, my program chrashes. Why? (For vertexBuffer and indexBuffer I set data into them when I initialize them, so they don't crash too)
Is there other way to prevent this from crashing other than creating X matrixBuffers for X objects...
Last edited on
Topic archived. No new replies allowed.