HEAP size allocation in VC++ 6.0 environment
HEAP size allocation in VC++ 6.0 environment
(OP)
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
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





RE: HEAP size allocation in VC++ 6.0 environment
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.