64k Limit

Hello,

I searched the forums for this topic but I couldn’t find anything.

I have arrays that are bigger than 64k, and when I try to access something beyond the 64k I get an access violation.

Any help is greatly appreciated.

Thanks,
Joe

grid G;

G.A = NULL;
G.A = (float*) malloc((1024*(1024+1))*sizeof(float));

typedef struct {

float* A;

} grid;

I’m in the process of converting everything into two dimensional arrays, I think this will solve the problem.