|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
No 'out of memory' message on Windows?by oxone (Friar) |
| on Feb 09, 2008 at 11:14 UTC ( [id://667164]=perlquestion: print w/replies, xml ) | Need Help?? |
|
oxone has asked for the wisdom of the Perl Monks concerning the following question:
It seems that when running Activestate Perl (5.8.7) on Windows XP, a perl program which runs out of memory stops 'silently' without writing an "out of memory" message either to STDOUT or STDERR.
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:
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.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||||