[fpc-pascal] Find error? ... memory

David Emerson dle3ab at angelbase.com
Wed Nov 10 09:29:29 CET 2004

> Regarding the EOutOfMemory exception, is that thrown only when all
> (physical+virtual) memory is exhausted?

I don't know, but perhaps you need a bigger stack and/or heap. (We've had to increase ours a couple times; I don't know what the defaults are)

From the programmer's manual:
{$M StackSize, HeapSize}
where StackSize and HeapSize are integer values, greater than 1024. [...] (Stack setting is ignored under linux, netbsd and freebsd)

Although in my experience, the stack setting is not ignored under linux. We have hit stack overflow errors which went away after increasing the stack size with this setting. So maybe it depends on the kernel or the version of fpc... dunno. Incidentally, we were recently having some trouble with stack overflows with the 2.6.7 kernel, and went back to 2.4.26, which seems to work fine.


More information about the fpc-pascal mailing list