AnsweredAssumed Answered

allocation and alignment

Question asked by Argusazure on Jan 22, 2010
Latest reply on Feb 16, 2010 by gyi

a simple beginner answer.


When I allocate memory like this :



#pragma align 4
int *anArray;
anArray=new int[(nSize/4+1)*4];

I have exception 0x24 : Data access misaligned address violation


Have you an idea why?
Thanks winking smiley