Skip to content
Prev 47332 / 63424 Next

External pointers and changing SEXPTYPE

On 16/12/2013 11:07, Krzysztof Mlynarczyk wrote:
Yes, but you didn't give us the complete reproducible example the 
posting guide asks for.  Peter's diagnosis is very likely right, but you 
have failed to give us anything like enough to go on.
It would not work anyway: the pointer stack top is reset when .Call (or 
similar) returns.

There is R_PreserveObject for this purpose.