V
VijaKhara
hi all,
i am trying to create a dynamic 2D array with size N x 3 (N will be
put in as a parameter) using the following code:
int **xyz;
int i,N;
N=30000;
xyz=malloc(3*sizeof(int*));
for (i=0; i<N;i++)
xyz=malloc(sizeof(int)*N);
the program ran too slow and finally error appeared when i increased
to 6288:
"Unhandled exception in proj1.exe :0xC0000005:Access violation.
it seems a "run out off memory error" . my pc has 600Mb RAM and around
1Gb free in harddisk.
Iam wondering if my array is too large that my pc's RAM can't handle?
it is amazing.
plz help??
i am trying to create a dynamic 2D array with size N x 3 (N will be
put in as a parameter) using the following code:
int **xyz;
int i,N;
N=30000;
xyz=malloc(3*sizeof(int*));
for (i=0; i<N;i++)
xyz=malloc(sizeof(int)*N);
the program ran too slow and finally error appeared when i increased
to 6288:
"Unhandled exception in proj1.exe :0xC0000005:Access violation.
it seems a "run out off memory error" . my pc has 600Mb RAM and around
1Gb free in harddisk.
Iam wondering if my array is too large that my pc's RAM can't handle?
it is amazing.
plz help??