in reply to Unexpected 'Out of Memory'
I ran your original script on my RedHat Linux box and my Windows XP Laptop (running activeperl) and it ran fine on both.
[root@thegnuage perl-scripts]# perl -c abi abi syntax OK [root@thegnuage perl-scripts]# chmod a+x abi [root@thegnuage perl-scripts]# ./abi 1 is a square 4 is a square 9 is a square 16 is a square 25 is a square 36 is a square 49 is a square 64 is a square 81 is a square 100 is a square 1 is a square 4 is a square 9 is a square 16 is a square 25 is a square 36 is a square 49 is a square 64 is a square 81 is a square 100 is a square 1 is a square 4 is a square 9 is a square 16 is a square 25 is a square 36 is a square 49 is a square 64 is a square 81 is a square 100 is a square
The following is all I could capture from my Windows command prompt because XP's command.exe sux and I have not hacked the registry yet.
64 is a square 81 is a square 100 is a square 1 is a square 4 is a square 9 is a square 16 is a square 25 is a square 36 is a square 49 is a square 64 is a square 81 is a square 100 is a square 1 is a square 4 is a square 9 is a square 16 is a square 25 is a square 36 is a square 49 is a square 64 is a square 81 is a square 100 is a square
What amount of Ram have you got in your system? Are you running many resource intensive apps at the same time as the script (Like any java apps)?
You could have a program giving you a memory leak and be unaware of it therefore you really are out of memory. Try a reboot and run the script again with minimal system apps running.
If after all that if you still get the error I would try reinstalling your perl interpretor or just compiling the script with perl2exe and then run it. If you still have the error I would say your memory sticks are going bad or one or all your DIMM slots on your systemboard are going bad and therefore giving erroneous indications.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unexpected 'Out of Memory'
by Abigail-II (Bishop) on Jan 13, 2004 at 16:14 UTC | |
by Elijah (Hermit) on Jan 13, 2004 at 17:02 UTC |