Adjusting heap size
Posted on 1997-02-21
I am porting an application to Windows NT 4.0 environment from Windows
95, and the application needs ~4-5MB of heap space.
Since the default heap space allocation is 1MB for an NT process, I have
tried to change this using the /HEAP - switch in the project options
setting Visual C++ with no luck. After 1MB has been allocated
malloc/calloc fails and returns a null pointer, which again causes the
process to terminate.
Does anyone know if NT overrides the HEAP - switch in Visual C++? If the
heap is allocated in the top 2GB - region of the NT memory map, I can
believe this. But then how can I change this default size? Is there an
initialisation file or other setting I have overlooked?
Please reply by email to: firstname.lastname@example.org
Thanks in advance for any reply,