oxone has asked for the wisdom of the Perl Monks concerning the following question:
I also run Perl on FreeBSD which helpfully will state "out of memory" to tell you there was a problem, which is what I'd expect.
The behaviour on Windows is a concern because a process may appear to start and finish fine, when in fact it may have been cut short if the system runs out of memory.
You could replicate this by filling memory on purpose:
# Warning: this will consume all of your memory $hash{$count++}='xyz'x999 while (1);
So, my question is this: is there a way to somehow get Activestate Perl on Windows to report "out of memory" rather than stop silently?
Note that my problem isn't with memory management in code, but just the risk that if a process DID unexpectedly run out, it wouldn't tell me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No 'out of memory' message on Windows?
by stiller (Friar) on Feb 09, 2008 at 12:09 UTC | |
by oxone (Friar) on Feb 09, 2008 at 13:06 UTC | |
|
Re: No 'out of memory' message on Windows?
by BrowserUk (Patriarch) on Feb 09, 2008 at 15:53 UTC | |
by roboticus (Chancellor) on Feb 09, 2008 at 18:28 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2008 at 19:16 UTC | |
|
Re: No 'out of memory' message on Windows?
by BrowserUk (Patriarch) on Feb 09, 2008 at 11:31 UTC | |
|
Re: No 'out of memory' message on Windows?
by roboticus (Chancellor) on Feb 09, 2008 at 13:53 UTC | |
|
Re: No 'out of memory' message on Windows?
by toma (Vicar) on Feb 10, 2008 at 07:55 UTC |