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
Dear list,
I am trying to implement a publish-subscribe mechanism in for an embedded
R interpreter. But somehow my registered closures seem to get collected by
the GC, even though I have protected them. I have reducted my code to the
following sample. Sorry if it is a little verbose.
The