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")
2.1m questions
2.1m answers
60 comments
57.0k users