Mika Raento wrote:
Here's some info about refcounting... it looks like we need to explore
%refcount and %unrefcount
Hm. I don't think it's that simple. The %refcount stuff assumes your C++
objects are refcounted. Which the Ndb objects aren't. Which is why I've
been toying with the idea of hooking into the reference counting/gc of
the target languages. But that may not be possible in any realistic way.
Indeed, you are right.
There are only a few things that need to get refcounted - Ndb,
NdbTransaction, NdbOperation... and even then it's unlikely that you let
the Ndb go out of scope. So maybe hooking in language level refcounting
wouldn't be too terrible.