[Rd] Question on the R's C stack limit

2007-06-28 Thread zhangxiaoning
Hi, Simon & all, I try to embed R in my win32 multiple threads program and get c stack error.I have tried to disable the stack limit by setting R_CStackLimit to -1.However, if I do this in R source code \src\gnuwin32\system.c (in functionR_SetWin32(Rstart Rp), after line R_CStackLimit = top -

Re: [Rd] Question on the R's C stack limit

2007-06-01 Thread Prof Brian Ripley
On Fri, 1 Jun 2007, Simon Urbanek wrote: > On Jun 1, 2007, at 5:44 AM, Ev Whin wrote: > >> Dear r-devel members, >> I encountered a C stack limit issue, when I tried to embed R >> 2.5 into my >> application. > > If you are embedding R, you can change or disable the stack limit by > setting R_C

Re: [Rd] Question on the R's C stack limit

2007-06-01 Thread Simon Urbanek
On Jun 1, 2007, at 5:44 AM, Ev Whin wrote: > Dear r-devel members, > I encountered a C stack limit issue, when I tried to embed R > 2.5 into my > application. If you are embedding R, you can change or disable the stack limit by setting R_CStackLimit appropriately. There is no need to chan

Re: [Rd] Question on the R's C stack limit

2007-06-01 Thread Prof Brian Ripley
On Fri, 1 Jun 2007, Ev Whin wrote: > Dear r-devel members, >I encountered a C stack limit issue, when I tried to embed R 2.5 into my > application. In the R-exts document, it says:"Note that R's own front ends > use a stack size of 10Mb". I desire to know: is it possible to decrease this > sta

[Rd] Question on the R's C stack limit

2007-06-01 Thread Ev Whin
Dear r-devel members, I encountered a C stack limit issue, when I tried to embed R 2.5 into my application. In the R-exts document, it says:"Note that R's own front ends use a stack size of 10Mb". I desire to know: is it possible to decrease this stack size by modifying R's source code? If it's