Re: Out of memory!

[email protected] (Alex Waugh) Sun, 20 Aug 2006 23:24:51 +0100
Newsgroups perl.riscos
Message-ID <[email protected]>
Philip Perry <[email protected]> wrote:

> Hello All,
> 
> Is there any way around the 28640K memory limit for a TaskWindow?
> 
> Posted to both RISCOS Perl list and AoL as though the difficulty arises
> from a BIG perl hash it appears to be limited by RISCOS (3 & 4). rather
> than Perl itself.

There are two options:
Use RISC OS 5, which raises the limit to 1GB.
Make Perl use a dynamic area for the heap.

The latter can be done by editing !Perl.!Boot to set Perl$Heap rather
than unset it. However, this will stop system() and similar functions
from working correctly. As your script doesn't use these functions then
it should be fine.

Alex

-- 
Alex Waugh                                           [email protected]

PHP, Roots, Subversion, WebJames and more from http://www.alexwaugh.com/