"bad stack access"
Posted: Mon May 08, 2006 11:08 am
hi all,
I'm using the following code:
objref vvec, tvec ,vx, i1, i2
vvec = new Vector()
tvec = new Vector()
tvec.record(&t)
soma vvec.record(&v(0.5),tvec)
i1 = tvec.indvwhere(">=", t1) //t1, t2 are defined elsewhere
i2 = tvec.indvwhere("<=", t2)
vx = vvec.c(i1+1, i2)
When I run the simulation the following errors appears:
bad stack access: expecting (double); really (Unknown)
nrniv: interpreter stack type error
What is the problem ?
Thanks in advance,
--Udi.
I'm using the following code:
objref vvec, tvec ,vx, i1, i2
vvec = new Vector()
tvec = new Vector()
tvec.record(&t)
soma vvec.record(&v(0.5),tvec)
i1 = tvec.indvwhere(">=", t1) //t1, t2 are defined elsewhere
i2 = tvec.indvwhere("<=", t2)
vx = vvec.c(i1+1, i2)
When I run the simulation the following errors appears:
bad stack access: expecting (double); really (Unknown)
nrniv: interpreter stack type error
What is the problem ?
Thanks in advance,
--Udi.