How can one increase the maximum memory allocated on the stack/heap for a program in C++?
Will increasing the RAM of your computer automatically increase the stack/heap memory of a computer program?
In Visual C++ you may use directive #pragma. For example:
#pragma
#pragma comment(linker, "/STACK:2000000") #pragma comment(linker, "/HEAP:2000000")
1.4m articles
1.4m replys
5 comments
57.0k users