Skip to content
Prev 12290 / 63461 Next

Memory Protection & calling C-fun from C

Torsten,

Of course, R itself is a C program so the principles apply to interpreted 
calls too, with your code in bar returning control to do_dotcall in your 
first example.

There can be no R memory allocation between returning from bar and 
assigning to a in foo, and it is memory allocation (and invoked gc's) one 
is protecting against.

Brian
On Fri, 2 Apr 2004, Torsten Hothorn wrote: