On Thu, 3 Apr 2008, Riccardo (Jack) Lucchetti wrote:
On Thu, 3 Apr 2008, Riccardo (Jack) Lucchetti wrote:
> The following patch seems to fix things.
>
> Index: lib/src/gretl_func.c
...
> Sven, Ignacio, could you apply the patch and give some feedback?
> Allin, could you check I haven't done anything wrong?
The word here is "seems" :-(
I now realise this is not a proper fix, just a workaround: Sven's script
apparently runs ok, but the workspace does not get cleaned properly.
More thought needed.
Ok, I think I've now sussed out what the issue is. Allin, correct me if
I'm wrong.
When exiting the function, we clean up all local variables. One of these
is the local copy of "cirank", which is #12. This, however, won't get
deleted because the last estimated model in the stack is a VAR, which
contains the variable "endotilde3", whose number is #35. So #12 gets
expunged from the "morituri" list, the list length becomes 0, no error
is flagged, and i goes back and forth from 11 and 12.
What next?
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti