memory/spawn problems [message #62768] |
Tue, 30 September 2008 09:42 |
astroboy2k
Messages: 34 Registered: July 2007
|
Member |
|
|
Hello.
I'm running a program which essentially does this:
aa= { big big structure of some sort}
main=replicate(aa, 10,10)
;crunch a few numbers, make a few plots, everything is great, then:
spawn,'date',out
at which point I get the following error:
% SPAWN: Error managing child process.
Resource temporarily unavailable
% Execution halted at: .................
OK, I figured I blew out the memory, so I did this:
aa= { big big structure of some sort}
main=replicate(aa, 10,10)
main=main(2:6,2:6)
;crunch a few numbers, make a few plots, then:
spawn,'date',out
Same error, same place in the code. Since main is now 25% of its
original size I'm starting to doubt this is a problem with memory.
The only thing I can think of is that the code uses alot of spawn
commands for minor things, such as 'date', 'pwd', etc. All one line
things, nothing complicated at all. Even if using spawn without the /
noshell keyword requires more overhead/memory, it seems like the
program would chug on a bit longer with the main array 1/4 its
original size.
If anyone has an idea as to what might be happening I'd appreciate it
alot! I'm afraid I'm clueless at this point.
Thanks,
Mark
|
|
|