?
Solved

Heap, Stack & C++ Builder

Posted on 1997-07-23
3
Medium Priority
?
930 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
AVaulin earned 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

765 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