I Solved it,
Instead of using a struct with XMMATRIX I now use a FLOAT4X4 Instead and just temporary send the value into the XMMATRIX to avoid this 16bit align problem .
I was wondering that particular error could mean that my pointer points to a null and am trying to change something that doesn't have something to change right?
but what more could cause that error?
This code doesn't give any compiler error, and I checked with the debugger that "Transform" have "values" which should be changeable.</
<pre class="_prettyXprint _lang-auto _linenums:1"> TransformComponent* temp; temp = dynamic_cast<TransformComponent*>(pHolder->ComponentList["TransformComponent"].get()); Transform = &temp->Transform; Transform->LocalPosition = XMMatrixIdentity(); </pre>
Edited by Conny14156, 01 January 2013 - 06:25 AM.