Re: memory/spawn problems [message #62766] |
Tue, 30 September 2008 10:13 |
Brian Larsen
Messages: 270 Registered: June 2006
|
Senior Member |
|
|
As to why this is happening, I don't know, how to fix it I can help,
can you just use
out=systime()
print, out
Tue Sep 30 13:12:11 2008
for your application?
as opposed to
date
Tue Sep 30 13:12:31 EDT 2008
Brian
|
|
|
Re: memory/spawn problems [message #62767 is a reply to message #62766] |
Tue, 30 September 2008 10:11  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Sep 30, 11:42 am, Mark <astrobo...@gmail.com> wrote:
> 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
1 - have you tried doing the "spawn" from the command line, not in the
program.
2 - have you tried using systime() [and cd instead of spawn, 'pwd',
etc.]
|
|
|