Displaying 1 result from an estimated 1 matches for "c_fns".
Did you mean:
c_fn
2003 Sep 29
0
Calling C fn crashes (PR#4281)
...Ben K.
Version: 1.7.1
OS: Win 2000
Submission from: (NULL) (208.243.20.222)
This C code doesn't crash:
void init(SEXP rho, int *o){
SEXP vars = findVar(install("vars"), rho);
}
It's called using:
vars <-as.data.frame(NULL)
vars$delta <-7
dyn.load("c_fns.dll")
print(.C("init",.GlobalEnv,o=as.integer(3))$o)
However, this does crash (``Rgui has generated errors and will be closed by
Windows''):
void init(SEXP rho, int *o){
SEXP vars = findVar(install("vars"), R_GlobalEnv);
}
This also crashes:
void init(SE...