Skip to content
Prev 4954 / 10988 Next

[Rcpp-devel] How to free memory in Rcpp

I am sorry that I was abusing this list. My point is
1) First, this code works for me for some simulation cases. I repeated the
simulation 1000 times, which then called this Rcpp function 1000 times at
least. And this code worked perfectly.
2) But in some other simulation case (here what I mean by simulation case,
just change some parameters to produce the data, but the data formats are
the same.), when I repeated the simulation 1000 times, at some point, for
example, at the 298th simulation, it did not work. Then in order to see
what is the problem, I just did the 298th simulation separately (since I
set the seed, it used the same data), but it worked well in this case. Then
I really have no idea what is going on there.

Best wishes!

Honglang Wang

Office C402 Wells Hall
Department of Statistics and Probability
Michigan State University
1579 I Spartan Village, East Lansing, MI 48823
wangho16 at msu.edu
On Thu, Dec 13, 2012 at 10:06 PM, Dirk Eddelbuettel <edd at debian.org> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121213/2a97ceb3/attachment.html>