Skip to content
Prev 3659 / 10988 Next

[Rcpp-devel] Rcpp Lists and memory corruption (resend)

Some head scratching this morning.

If I have this:
return Rcpp::List::create(Rcpp::Named( "testVar" ) = 10 ) ;

instead of:
return Rcpp::List::create(Rcpp::Named( "testVar" ) = wrap(10) ) ;

everything runs smoothly.



So my guess is that the SEXP that is made in the wrap call does not get 
sufficient protection.

Not sure this is an Rcpp bug or a user bug, but there might be somethign 
I can do to prevent it.

Romain


Le 31/03/12 09:20, Ilya E a ?crit :