From simon.urbanek at r-project.org  Tue May 22 18:10:20 2007
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 22 May 2007 12:10:20 -0400
Subject: [Rd] The R.dll problem
In-Reply-To: <dfed1c180705220233i3a4db135ta6a9cee24f119a02@mail.gmail.com>
References: <dfed1c180705220233i3a4db135ta6a9cee24f119a02@mail.gmail.com>
Message-ID: <357691B7-E404-41D0-BBAE-3EECB24C210A@r-project.org>


On May 22, 2007, at 5:33 AM, Ev Whin wrote:

> Hi r-devel,
>
> I've linked my windows application to the R.dll following the  
> instructions
> from the R documents,
> however, my application always encounters C stack limit.

Are you using threads? If so, you have to disable the C stack limit  
(R_CStackLimit=-1), because threads may use a varying stack base. If  
you are not, you better check your code as you may be corrupting the  
stack.

Cheers,
Simon



[Rd] The R.dll problem
Simon Urbanek