Re: [Rd] Invalid read of size 8

2015-02-05 Thread Simon Urbanek
As you can see from the stack trace the memory you're trying to use has already been released so it was not protected. Since you only provided part of your code we can't really reproduce it or help you. However, why don't you use just use double *MatCovExtra = REAL(PROTECT(allocMatrix(REALSXP,

Re: [Rd] Invalid read of size 8

2015-02-05 Thread niandra
Few more details: nSamples_save is an integer variable and if nSamples_save>1000 I get the error, while if nSamples_save<1000 everything is fine -- View this message in context: http://r.789695.n4.nabble.com/Invalid-read-of-size-8-tp4702843p4702847.html Sent from the R devel mailing list archi

Re: [Rd] Rcurl crash in R-devel

2015-02-05 Thread Prof Brian Ripley
On 05/02/2015 09:42, Marc Girondot wrote: Hello, I don't know if the problem originates from R-devel 3.2 or Rcurl itself. The traceback is 100% sure it originates in or below RCurl (possibly in your system's libcurl). R-devel must be innocent here. Your example is not reproducible (see th

[Rd] Invalid read of size 8

2015-02-05 Thread niandra
Hi, I have a R program that call a C function. I define a vector of pointer as int nLC=3; int pownLC = nLC*nLC double *MatCovExtra[nT+1]; for(k=0;kK. Then i put some values on the vector associated with the pointer: for(k=0;khttp://r.789695.n4.nabble.com/Invalid-read-of-size-8-tp4702843.html S

[Rd] How to unload R.dll successfully by FreeLibrary

2015-02-05 Thread 暮如雪
hi, I've some C++ code which try to load R.dll and execute some R command, then unload R.dll, yet it seems fail to unload it, so second time to call the function hangs since it is trying to Initialize R again(this is not allowed as documented). Anyone can tell me why, thanks. //the following

[Rd] Rcurl crash in R-devel

2015-02-05 Thread Marc Girondot
Hello, I don't know if the problem originates from R-devel 3.2 or Rcurl itself. I post this message to the R-devel list and to the author of RCurl (dun...@r-project.org). > library("RCurl") Le chargement a nécessité le package : bitops > print(sessionInfo()) R Under development (unstable) (20