Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HEAP size allocation in VC++ 6.0 environment

Status
Not open for further replies.

nikhiljoglekar

Mechanical
Apr 8, 2003
17
0
0
US
Hi All

My program needs a lot of memory and after allocating some using NEW statement, it returns NULL for any new object created. I guess that is becuase of the heap size limitation of the Visual Studio which stands at 1MB. I need to increase it. One option I found was to set /HEAP:memory in the Link options of project setting. Bur it didn't seem to work. I am getting same problem again.
Dows anybody has a opinion about this.

regards
Nikhil
 
Replies continue below

Recommended for you

Yeah don't use the new operator...

How large of a chunk of memory are you looking for? Is it for holding objects or data? The three ways I'd go for is:

1)Create and use a custom heap
2)Use Virtual memory
3)Use memory mapped files

All depends on what exactly you're using it for.
 
Status
Not open for further replies.
Back
Top