Sign in to follow this  

XMMatrixMultiply exception

Recommended Posts


I'm getting an exception when this third statement is executed, I knew this since I was tracing the code using the breakpoints..

XMMATRIX view=XMMatrixIdentity();
XMMATRIX projection=XMMatrixOrthographicOffCenterLH(0.0f,screenWidth,0.0f,screenHeight,0.1f,100.0f);
vpMatrix=XMMatrixMultiply(view, projection);

this (vpMatrix=XMMatrixMultiply(view, projection);) is causing the exception, why? and how can I fix this?

I have Win7 32-bit..

Share this post

Link to post
Share on other sites
A little hint, I traced the code more and found that the multiplication of the view and projection matrices is going right, the only error is happening when assigning the result
to the (vpMatrix), the part of code traced in withing XNA MATH files and this is it..

r[0] = M.r[0];
r[1] = M.r[1];
r[2] = M.r[2];
r[3] = M.r[3];
return *this;

The exception is happening here (r[0] = M.r[0];)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this