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
Solved

Heap, Stack & C++ Builder

Posted on 1997-07-23
3
870 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maze travler 6 62
Building cUrl in Windows v7.43.0 4 36
Exception thrown at 0x00007FFD5BC81F28 7 49
Adding items to a C# list incrementally 5 28
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

792 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