[Rd] How to set R_CStackLimit

Xiaoning xiaoning_zhang at hotmail.com
Thu Jun 28 10:20:55 CEST 2007


Hi,
 
I have tried to disable stack checking by set R_CStackLimit to -1. However,
it always crashes my win32 multiple threads program. I am using R-2.5.0. My
code looks like:
 
#include <Rversion.h>
#if (R_VERSION >= R_Version(2,3,0))
#define R_INTERFACE_PTRS 1
#define CSTACK_DEFNS 1
#include <Rinterface.h> 
#endif
 
and then, add below line to my main function:
    R_CStackLimit = (uintptr_t)-1;  //crashes when step to this line.
 
As for input library in link option, I only link to Rdll.lib. Am I missing
something?
 
Thanks very much!
 
xzhang

-- 
View this message in context: http://www.nabble.com/How-to-set-R_CStackLimit-tf3993070.html#a11338977
Sent from the R devel mailing list archive at Nabble.com.



More information about the R-devel mailing list