Hi Frank,
after some time, I spotted the error. It doesn't have anything to do with arrays, but really with a negative sqrt argument in another place of the code, which I hadn't seen before.
I now have another problem: I need to extend the size of a dynamic vector, passed as VAR (i.e. by reference) to a procedure. I need to preserve the elements of the vector to be resized. I use NEW each time inside the procedure, and it works, but this fills up the stack very quickly, and I run out of memory. Do you have any suggestion?
Thanks, bye
Silvio
On Tue, 2 Sep 2003, Frank Heckenbach wrote:
| Hi, | | > unifortunately I cannot reproduce the error any longer. | | With the new GPC release, or after changes in your code? | | > Maybe it has to do | > with dynamic arrays: I was directly taking the square root of the element | > of a dynamic array. Can this cause problems? | | I can't think of any connection between the two. Perhaps an | out-of-range array access? But I can only guess unless you can show | at least some relevant portion of the code. | | Frank | | -- | Frank Heckenbach, frank@g-n-u.de | http://fjf.gnu.de/ | GnuPG and PGP keys: http://fjf.gnu.de/plan (7977168E) |