Board index » delphi » "Local Heap Size" in Linker Settings

"Local Heap Size" in Linker Settings

In the Options|Project|Linker options page, there is a setting labeled
"Local Heap Size".
The Delphi help explains this value as "Size of the local heap for local
window allocations. The heap size must be in the range of 1024 to 65536."

After some exploration, I determined that the Stack Size, Local Heap Size,
and global
data must all fit within one segment.

What exactly is the "Local Heap Size" used for?  Thanks...

Jon

 

Re:"Local Heap Size" in Linker Settings


Quote
In article <01bbd656$1e4524c0$2b7bb4cc@jon> "Jon Robertson" <to...@flash.net> writes:
>In the Options|Project|Linker options page, there is a setting labeled
>"Local Heap Size".
>The Delphi help explains this value as "Size of the local heap for local
>window allocations. The heap size must be in the range of 1024 to 65536."
>After some exploration, I determined that the Stack Size, Local Heap Size,
>and global
>data must all fit within one segment.
>What exactly is the "Local Heap Size" used for?  Thanks...

The stack, the global data, and the local heap (and the task-header) must all
fit within one segment in 16-bit Windows.  The local heap is, for example,
where the list of items in a list-box or the current text in an edit-box might
get stored.  It is an area used only by Windows.

Re:"Local Heap Size" in Linker Settings


Quote
> After some exploration, I determined that the Stack Size, Local Heap Size,
> and global
> data must all fit within one segment.

well,the Stack is where the data needed to call functions is stored
(arguments,local variables,that thing.Actually used for
recursion,really,becuz then you'll need a good sized stack).the global
data is the Just that : the data used in the main program : all the variables
that are created while Compiling (not runtime).the GLOBAL variables.the local
heap is where The program gets it RunTime variables : when you allocate
new memory using pointers,and such...
  hope I helped a bit...
--------------------------------------------------------------->
Ron Mertens | WWW : http://www.math.tau.ac.il/~mertero | -->Tsh|
--------------------------------------------------------------->  
              "I wouldn't shut your eyes just yet                
               I wouldn't turn the lights down yet                
               'Cos there's things you've gotta see here          
               There's things you've gotta believe of me"
                                                 Tindersticks

Other Threads