Dear S+ers,
I hope someone can help me with an frustrating problem I have. I am
trying to develop a Splus function, which itself uses Fortran code. The
Fortran code was compiled with GNU compiler on "mingw":
g77 -O2 -c file1.f file2.f ... file20.f
dllwrap -o S.dll --export-all-symbols file1.o file2.o ... file20.o -lg2c
Then in Splus,
dyn.open("C:\\directory\\S.dll")
I then use my Splus function "car", which is a continuous time series
model fitting. For the same data, I then tried different order model,
and compared them with my results implemented on R. The problem is that
after I successfully applied the function to several orders, as example,
3, 4, 5, 6, then I got error message for order 7:
> fit <- car(data=sim, order=7)
> fit
Nothing!
then type
>2+2
Nothing!
then type
>2+2
Engine connection failure - shutting down S-PLUS recommended
>q()
Problem: internal error: trying to set internal exit action in frame 0,
must be between 1 and 4
Error during wrapup: internal error: trying to set internal exit action
in frame 0, must be between 1 and 4
Engine connection failure - shutting down S-PLUS recommended
> traceback()
Engine connection failure - shutting down S-PLUS recommended
However, if I restart Splus and run order 7 to the data, I had no
problem. But continuing several different order model fitting eventually
resulted the same problem.
#####
I searched the S-plus mailing list, and found that Robert Burbidge had
similar problem when using Finmetric. But I did not find any answer for
the inquiry. Is this my problem or Splus bug?
Thanks,
--
Zhu Wang
Statistical Science Department
Southern Methodist University
Dallas, TX 75275-0332
Phone:(214)768-2453 Fax:(214)768-4035
zhuw@mail.smu.edu
|