J'ai uin probléme avec l'allocation dynamique d'un tableau de trois dimensions, dans un projet Exe MFC (VC++)
GridPoint est une structure contenant 4 float
GridPoint*** mGridPoints;
mGridPoints =NULL;
mGridPoints = new GridPoint**[mWidth ];
for (int i = 0; i < mWidth ;i++)
{
mGridPoints[i] = new GridPoint*[mHeight ];
for (int j = 0; j < mHeight ; j++)
{
mGridPoints[i][j] = new GridPoint[mSize ];
}
}
J'obtiens le probleme :Ehec lors de lacreation d'un nouveau document vide. !