Re: [Rcpp-devel] Irregular crash with rcpp and inline

2012-04-13 Thread Dirk Eddelbuettel
As a second follow-up: if you a) use RcppArmadillo, b) you also define PKG_CPPFLAGS= -UNDEBUG somewhere (I use ~/.R/Makevars) to suppress R's new -DNDEBUG which otherwise turns debugging asserts off then you get bounds checking from Armadillo on the normal (eg

Re: [Rcpp-devel] Irregular crash with rcpp and inline

2012-04-13 Thread Dirk Eddelbuettel
Hi Marie, Thanks for posting here. On 13 April 2012 at 11:31, Marie Auger-Methe wrote: | I am new to Rcpp, c++, and inline. I have created a simple test function | which works some of the times but not all the times. It generally Sign of a memory error writing past bounds... | crashes when I

[Rcpp-devel] Irregular crash with rcpp and inline

2012-04-13 Thread Marie Auger-Methe
Hi, I am new to Rcpp, c++, and inline. I have created a simple test function which works some of the times but not all the times. It generally crashes when I run it with a large sample size or after calling the function multiple times. When it doesn't work, it crashes R completely and so I ha