|
-
June 1st, 2004, 01:08 AM
#1
memory allocation failure
Hi all,
I'm writing a project which need a large amount of memory allocation.
The code I use to allocate memory is:
void* pMem = new char[1000*1024*1024]
The memory allocation fail and the return value of new is NULL.
The maximum size of memory that I managed to allocate is 700MB.
The computer I working on has 2GB memory.
I also wrote a small program to check the problem and the same allocation succeeded.
Do you have any idea,suggestion why this is happening?
Thanks for your help
Alon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|