Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Apr 8, 2003
Messages
17
Location
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
 
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.

Part and Inventory Search

Sponsor

Back
Top