[Rd] How to set R_CStackLimit

From: Xiaoning <xiaoning_zhang_at_hotmail.com>
Date: Thu, 28 Jun 2007 01:20:55 -0700 (PDT)

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.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 28 Jun 2007 - 08:29:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Jun 2007 - 22:35:47 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.