Da: Peter L. Soendergaard <address@hidden>
Oggetto: Re: R: invoking the correct memory management from C files
A: "Riccardo Corradini" <address@hidden>
Cc: address@hidden
Data: Mercoledì 5 maggio 2010, 15:08
fre, 23 04 2010 kl. 14:11 +0000, skrev Riccardo Corradini:
> >How do I best define ltfat_malloc and friends for use with Octave?
>
> I am not sure if it can be of real help, but ...did you use the
> OCTAVE_LOCAL_BUFFER macro? I found it very useful to handle some
C MPI
> functions
>
>
OCTAVE_LOCAL_BUFFER seems to be the right answer.
Is there a benefit in trying to 'free' the memory again? The code
already has wrapper functions in the correct places to free the memory.
Should I just make the free-wrappers do nothing?
Cheers,
Peter.