Re: How to increase HEAP size in VC++ 6.0 environment
From: Perry S. Morris (relvinian_at_mindspring.com)
Date: 04/02/04
- Next message: Leor Zolman: "Re: Newbie program"
- Previous message: osmium: "Re: Newbie program"
- In reply to: nvjoglekar: "How to increase HEAP size in VC++ 6.0 environment"
- Next in thread: Christopher Benson-Manica: "Re: How to increase HEAP size in VC++ 6.0 environment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 02 Apr 2004 15:28:59 GMT
Nikhil,
Look at the Win32 API calls VirtualAlloc() and VirtualFree(). Use these
instead of new/delete for large blocks of memory.
On a side note, this forum is suppose to be c++ only --- not OS dependent
or compiler dependent.
Anyway, I hope those two API calls will help you. ;-)
Perry
"nvjoglekar" <nvjoglekar@rediffmail.com> wrote in message
news:bcae6599.0404020713.61d032cf@posting.google.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
- Next message: Leor Zolman: "Re: Newbie program"
- Previous message: osmium: "Re: Newbie program"
- In reply to: nvjoglekar: "How to increase HEAP size in VC++ 6.0 environment"
- Next in thread: Christopher Benson-Manica: "Re: How to increase HEAP size in VC++ 6.0 environment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|