[Rcpp-devel] Rcpp Lists and memory corruption

2012-03-31 Thread Ilya E
Are there any known issues regarding memory corruption caused by lists created inside of Rcpp? I started noticing some inconsistencies in the data returned by my app, and was able to reduce the issue to the following reproducible example. It seems to suggest that lists created in Rcpp and retur

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

2012-03-31 Thread Ilya E
(Apologies for sending this twice -- the formatting on the first email got completely mangled) Are there any known issues regarding memory corruption caused by lists created inside of Rcpp? I started noticing some inconsistencies in the data returned by my app, and was able to reduce the issue

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

2012-03-31 Thread Romain Francois
Thanks for this. I can reproduce the issue with the devel version. I get : > Filter( function(x) x != 10, testOutcome ) [[1]] [1] "testVar" [[2]] [1] "testVar" [[3]] [1] "testVar" [[4]] [1] "testVar" [[5]] [1] "testVar" [[6]] [1] "testVar" [[7]] [1] "testVar" [[8]] [1] "testVar" [[9]] [1]

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

2012-03-31 Thread Romain Francois
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 suff

[Rcpp-devel] Visual C++

2012-03-31 Thread Eduardo Polanco
Is it possible to use Rinside from Visual C++___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel