"nvjoglekar " <nv********@red iffmail.com> wrote in message
news:bc******** *************** ***@posting.goo gle.com
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
VC++ specific questions are off-topic here. You should post them at
microsoft.publi c.vc.language
I rather doubt, however, that your problem is really a VC++ configuration
problem. Two points:
1. The 1Mb default heap size is just an initial value. The heap is enlarged
as needed (as a test, I just allocated 100Mb without a problem in spite of
using the default heap settings).
2. NEW is not part of the C++ language. The appropriate keyword is new
(lower case).
I suspect that your problem is a language one, but it is impossible to be
more specific without seeing your code. See if you can create a compileable
sample that exhibits the problem. Of course, the amount of memory available
on any system is limited, so it is possible to exceed it. But a normal
correctly written program is unlikely to do so.
--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)