[Lazarus] Delphi5 -> Lazarus issues

Aleksa Todorovic alexionne at gmail.com
Wed Feb 18 09:28:59 CET 2009


On Tue, Feb 17, 2009 at 22:00, jokrautzig at bluemail.ch
<jokrautzig at bluemail.ch> wrote:

> 4. The stack seems to be limited to approx. 220 kB and to date I did not find the way to increase it ( (*$M,
> MinStackSize, MaxStackSize*) ?). A procedure trying to initialise approx. 800 kB for arrays caused a SIGSEGV.

220kb sounds really large for stack. If your function is not
recursive, you should consider:
a) dynamic array, or
b) static array outside the function (which is always allocated in memory), or
c) static array inside the function as a const (with "Writable consts"
turned on)



More information about the Lazarus mailing list