Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Seth Falcon
On 4/20/10 6:24 AM, Melissa Jane Hubisz wrote: Thanks for the responses. Seth's example is indeed what I was trying (hoping) to do, it seems to work on my system fine (ubuntu x86_64, R 2.10.1). But if it doesn't work for him, then that definitely answers my question. I guess I'll have to go th

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread luke
On Tue, 20 Apr 2010, Simon Urbanek wrote: On Apr 19, 2010, at 1:22 PM, Seth Falcon wrote: On 4/19/10 8:59 AM, Simon Urbanek wrote: On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: Hello, The Writing R extensions manual section 6.1.1 describes the transient memory allocation functi

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Simon Urbanek
On Apr 20, 2010, at 10:12 AM, Simon Urbanek wrote: > > On Apr 19, 2010, at 1:22 PM, Seth Falcon wrote: > >> On 4/19/10 8:59 AM, Simon Urbanek wrote: >>> >>> On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: >>> Hello, The Writing R extensions manual section 6.1.1 describes th

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Simon Urbanek
On Apr 19, 2010, at 1:22 PM, Seth Falcon wrote: > On 4/19/10 8:59 AM, Simon Urbanek wrote: >> >> On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: >> >>> Hello, >>> The Writing R extensions manual section 6.1.1 describes the transient >>> memory allocation function R_alloc, and states th

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Melissa Jane Hubisz
Thanks for the responses. Seth's example is indeed what I was trying (hoping) to do, it seems to work on my system fine (ubuntu x86_64, R 2.10.1). But if it doesn't work for him, then that definitely answers my question. I guess I'll have to go the Calloc/Free route. Thanks, Melissa On Mon, Apr

Re: [Rd] transient memory allocation and external pointers

2010-04-19 Thread Seth Falcon
On 4/19/10 8:59 AM, Simon Urbanek wrote: On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: Hello, The Writing R extensions manual section 6.1.1 describes the transient memory allocation function R_alloc, and states that memory allocated by R_alloc is automatically freed after the .C or

Re: [Rd] transient memory allocation and external pointers

2010-04-19 Thread Simon Urbanek
On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: > Hello, > The Writing R extensions manual section 6.1.1 describes the transient > memory allocation function R_alloc, and states that memory allocated > by R_alloc is automatically freed after the .C or .Call function is > completed. Howe

[Rd] transient memory allocation and external pointers

2010-04-19 Thread Melissa Jane Hubisz
Hello, The Writing R extensions manual section 6.1.1 describes the transient memory allocation function R_alloc, and states that memory allocated by R_alloc is automatically freed after the .C or .Call function is completed. However, based on my understanding of R's memory handling, as well as som