oyvind
asked on
Adjusting heap size
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: os@cs.strath.ac.uk
Thanks in advance for any reply,
Yours sincerely,
Oyvind Stromme
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: os@cs.strath.ac.uk
Thanks in advance for any reply,
Yours sincerely,
Oyvind Stromme
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.