Re: references and XS

2008-08-31 Thread sisyphus
On Aug 30, 3:01 am, [EMAIL PROTECTED] (Patrick Dupre) wrote: . . > I do: > AV* av ; > > then av = (AV*) svRV (retval) ; > Looks ok to me. Install Inline::C so that you can quickly and easily test things out: use warnings; use strict; use Inline C => Confi

Re: references and XS

2008-08-29 Thread Patrick Dupre
Calling a sub from perl, if this sub return an address on an array, it is not a problem, perl seems to manage correctly the memory to keep allocated, and I can access to the data through the reference at any time. Making the same call from a CPP method seems not to work. If I quit the method and

Re: references and XS

2008-08-29 Thread Rob Dixon
Patrick Dupre wrote: > > Calling a sub from perl, if this sub return an address on an array, > it is not a problem, perl seems to manage correctly the memory to > keep allocated, and I can access to the data through the reference > at any time. > > Making the same call from a CPP method seems not

references and XS

2008-08-29 Thread Patrick Dupre
Hello, Calling a sub from perl, if this sub return an address on an array, it is not a problem, perl seems to manage correctly the memory to keep allocated, and I can access to the data through the reference at any time. Making the same call from a CPP method seems not to work. If I quit the met