Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Dominick Samperi
Doug, I think the problem is resolved. I wasted a lot of time trying to debug the new Module code, and didn't think to try gctorture() with older code that has worked for a long time. That code failed too! The attached file tortureFix.cpp shows the kind of fix that is needed in some of the Rcpp c

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Dominick Samperi
Let's focus on problem solving, not (you know what I want to say). On Sat, Jan 8, 2011 at 2:40 PM, Dirk Eddelbuettel wrote: > > On 8 January 2011 at 14:19, Dominick Samperi wrote: > | Gabor brought up the topic of Promises a few days ago and it > > There is absolutely no relation between Gabor n

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Dirk Eddelbuettel
On 8 January 2011 at 14:19, Dominick Samperi wrote: | Gabor brought up the topic of Promises a few days ago and it There is absolutely no relation between Gabor noticing that we have little in terms Rcpp classes for PROMSXP and what Doug is debugging here in terms of advanced object instantion.

Re: [Rcpp-devel] continuing attempts with throw/catch problem

2011-01-08 Thread Dirk Eddelbuettel
On 8 January 2011 at 13:52, Ben Bolker wrote: | | [previously sent to Dirk but here in case anyone else is interested, | and for archival purposes] | | Things are feeling alarmingly non-deterministic, but that may be | because I've been sloppy. I've been working mostly with a stock R | 2.12

Re: [Rcpp-devel] Using Rcpp on mingw 4.5.2

2011-01-08 Thread Dirk Eddelbuettel
Hi Steffen, On 8 January 2011 at 17:40, Steffen Neumann wrote: | > Some of the other error reveals similar gotchas about redefinitions. If I | > were you I'd try smaller and smaller subsets of the codes and headers til it | > works, and then try to find a way to get the offending headers back in

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Dominick Samperi
On Sat, Jan 8, 2011 at 2:06 PM, Douglas Bates wrote: > On Sat, Jan 8, 2011 at 12:57 PM, Dominick Samperi > wrote: > > > > > > On Sat, Jan 8, 2011 at 9:48 AM, Douglas Bates > wrote: > >> > >> On Sat, Jan 8, 2011 at 7:49 AM, Douglas Bates > wrote: > >> > On Sat, Jan 8, 2011 at 12:45 AM, Dominick

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Douglas Bates
On Sat, Jan 8, 2011 at 12:57 PM, Dominick Samperi wrote: > > > On Sat, Jan 8, 2011 at 9:48 AM, Douglas Bates wrote: >> >> On Sat, Jan 8, 2011 at 7:49 AM, Douglas Bates wrote: >> > On Sat, Jan 8, 2011 at 12:45 AM, Dominick Samperi >> > wrote: >> >> I checked things under Linux and Windows (using

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Dominick Samperi
On Sat, Jan 8, 2011 at 9:48 AM, Douglas Bates wrote: > On Sat, Jan 8, 2011 at 7:49 AM, Douglas Bates wrote: > > On Sat, Jan 8, 2011 at 12:45 AM, Dominick Samperi > wrote: > >> I checked things under Linux and Windows (using GCC and VC++ DLL's) and > the > >> same problem occurs at the same plac

[Rcpp-devel] continuing attempts with throw/catch problem

2011-01-08 Thread Ben Bolker
[previously sent to Dirk but here in case anyone else is interested, and for archival purposes] Things are feeling alarmingly non-deterministic, but that may be because I've been sloppy. I've been working mostly with a stock R 2.12.1 install (Ubuntu 10.10), but have also tried R-devel and a

Re: [Rcpp-devel] Using Rcpp on mingw 4.5.2

2011-01-08 Thread Steffen Neumann
Hi Dirk, On Fri, 2011-01-07 at 19:44 -0600, Dirk Eddelbuettel wrote: ... > | but for the life of it I am unable to get it to compile > | on 64bit Windows with a recent R-2.13.x snapshot (also tried 2.12.x) > | with neither the Rtools based on mingw-4.5.1 nor those downloaded today > | with mingw-4

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Douglas Bates
On Sat, Jan 8, 2011 at 7:49 AM, Douglas Bates wrote: > On Sat, Jan 8, 2011 at 12:45 AM, Dominick Samperi wrote: >> I checked things under Linux and Windows (using GCC and VC++ DLL's) and the >> same problem occurs at the same place, which is a good sign when it comes to >> memory issues. Basicall

Re: [Rcpp-devel] RcppArmadillo 0.2.11

2011-01-08 Thread Dirk Eddelbuettel
On 8 January 2011 at 08:00, Dirk Eddelbuettel wrote: | | Conrad released version 1.1.0 of Armadillo just before Christmas; I didn't | notice til this week. | | A new version 0.2.11 of RcppArmadillo contains it, and is now on CRAN. No | other changes were made at our end, the NEWS entry follow

[Rcpp-devel] RcppArmadillo 0.2.11

2011-01-08 Thread Dirk Eddelbuettel
Conrad released version 1.1.0 of Armadillo just before Christmas; I didn't notice til this week. A new version 0.2.11 of RcppArmadillo contains it, and is now on CRAN. No other changes were made at our end, the NEWS entry follows. 0.2.11 2011-01-06 o Upgraded to Armadillo Version 1.1.

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-08 Thread Douglas Bates
On Sat, Jan 8, 2011 at 12:45 AM, Dominick Samperi wrote: > I checked things under Linux and Windows (using GCC and VC++ DLL's) and the > same problem occurs at the same place, which is a good sign when it comes to > memory issues. Basically, the Rcpp::Reference(std::string) constructor that > is >