Solved

Heap, Stack & C++ Builder

Posted on 1997-07-23
3
865 Views
Last Modified: 2012-05-04
Hello, you all.  I'm working in an application for Windows95, with C++ Builder. I need to modify the size of stack and heap, because I run out of memory in runtime,
when my application tries to load big files. Could
you explain me how can I vary the size of stack & heap
using the code source or in another way? Thanks a lot...
0
Comment
Question by:mayorgas
3 Comments
 
LVL 4

Accepted Solution

by:
AVaulin earned 100 total points
ID: 1165706
Modify what you want with STACKSIZE and HEAPSIZE module-definition statements in your .def (module-definition) file.
0
 

Expert Comment

by:BigRog
ID: 1165707
For C++Builder it's simple.  With your project open, select the menu Options->Project, then select the tab titled Linker.  You will see the min and max stack sizes, ands that's all there is to it.  

As far as the heap size, you don't need to worry about that, you have access to all the available memory, so stack is all you need to modify.

Good luck,
BigRog
0
 

Author Comment

by:mayorgas
ID: 1165708
The answer from AVaulin seems to be right for C++, but in C++ Builder, it seems better using the way explained by BigRog.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question