From xiaoning_zhang at hotmail.com  Thu Jun 28 10:20:55 2007
From: xiaoning_zhang at hotmail.com (Xiaoning)
Date: Thu, 28 Jun 2007 01:20:55 -0700 (PDT)
Subject: [Rd] How to set R_CStackLimit
Message-ID: <11338977.post@talk.nabble.com>


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.



[Rd] How to set R_CStackLimit
Xiaoning