Dear Duncan,
Thank you for your suggestion. I did not know about R_PreserveObject, this is
exactly what we needed. You have been very helpful.
Regards,
Bernd
On Thu, 08 Jan 2009 15:59:25 +0100, Duncan Temple Lang
wrote:
Hi Bernd
There are two problems here.
Firstly, routines that are in
Hi Bernd
There are two problems here.
Firstly, routines that are invoked via the .Call() interface
must return a SEXP, not a void. (void is for .C()-callable
routines.)
The more serious problem is that yes, you are PROTECT'ing
the callbacks when you set them, but PROTECT'ing is
for the durati