calloc failure
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
I have: (nh-nl + 1) 1247923961 and calloc fails:
v=(double \*)calloc((nh-nl+1),sizeof(double));
v is zero. How do I fix this? Why is this happening?
I think you are trying to allocate over 2GB of space.
-
I have: (nh-nl + 1) 1247923961 and calloc fails:
v=(double \*)calloc((nh-nl+1),sizeof(double));
v is zero. How do I fix this? Why is this happening?
You're allocating over 8GB of memory. Windows won't let you do this...
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
You're allocating over 8GB of memory. Windows won't let you do this...
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"