Re: [Rd] Crash - cause 'memory not mapped'

2012-11-10 Thread Peter Langfelder
On Fri, Nov 9, 2012 at 3:05 PM, gianluca mastrantonio wrote: > the error "memory non mapped" happen also if i use > void FiltroGaus(SEXP size1_r, SEXP size2_r, SEXP sigma_r) > instead > SEXP FiltroGaus(SEXP size1_r, SEXP size2_r, SEXP sigma_r) { > If you use a .Call on a function, the function mu

Re: [Rd] Crash - cause 'memory not mapped'

2012-11-10 Thread Peter Langfelder
I'm not an expert, but from what I know you should certainly use the .Call interface when you define a function as you did. The problem is that your function must return a value (of type SEXP) which it does not. If you don't return a value, all bets are off as to what will happen, and if the intern