List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:May 8 2007 7:07am
Subject:Re: [Fwd: Re: [Swig-user] C++ wrapping question]
View as plain text  
Mika Raento wrote:
> Monty Taylor 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.

-- 
Monty Taylor
Senior Consultant
MySQL Inc., www.mysql.com
Get More with MySQL!  www.mysql.com/consulting
Thread
[Fwd: Re: [Swig-user] C++ wrapping question]Monty Taylor7 May
  • Re: [Fwd: Re: [Swig-user] C++ wrapping question]Mika Raento8 May
    • Re: [Fwd: Re: [Swig-user] C++ wrapping question]Monty Taylor8 May
      • Re: [Fwd: Re: [Swig-user] C++ wrapping question]Mika Raento8 May
        • Re: [Fwd: Re: [Swig-user] C++ wrapping question]Monty Taylor8 May
          • Re: [Fwd: Re: [Swig-user] C++ wrapping question]Mika Raento8 May
            • Re: [Fwd: Re: [Swig-user] C++ wrapping question]Mika Raento8 May
              • Re: [Fwd: Re: [Swig-user] C++ wrapping question]Mika Raento8 May
          • compilation fails from bzrMika Raento8 May
            • Re: compilation fails from bzrMonty Taylor8 May