help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

memory problem


From: Stef Pillaert BK
Subject: memory problem
Date: Thu, 5 Jun 1997 10:44:56 +0000 (MET)

Hello, I have a problem:

I've written a (rather big) program, using scripts (and I'm
using octave-2.0.6 now). The program is a main function, and from that
function I call a lot of other functions (with a few levels of
nesting...). Since I need a few big matrices, I declare them as global
variables, thus hoping to avoid unnecessary copies of them...

What's my problem? When I'm solving big problems (i.e. big matrices) with
my program, I get a message like 'memory exhausted'. I'm trying to figure
out why I get the memory problem, because it seemed that memory was
"growing" where I didn't expect it.

I also tried a smaller problem (i.e. smaller matrices), but when I
calculate my problem over and over again (i.e. from my main function I
keep calling the "sub-functions" over and over again), I also have memory
problems: "error: out of dynamic memory in yy_create_buffer();". This is
difficult to understand for me, because I get this message only after a
lot of calls of the sub-functions (so the first time I calculate
it, everything goes fine, but repeating the same process over and over
again gets me in trouble...)

Is there an easy way for me to detect what exactly is "growing"? Can I
check how "big" (in Bytes) every variable is? 

I'm sorry that this message isn't very detailed, but my program is so big
that it's very complicated for me to trace where my problems come from.
I've tried to check (as much as possible with "whos") wether my global
variables aren't "growing", and that "seems" to be O.K. 

Thanks

P.S. I also had the problems with 2.0.5.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]