Good Morning, On Wed, Apr 14, 2010 at 9:56 PM, Stephen Furlani <[email protected]> wrote: > Here's what I'm getting: > > RefCount remains at 0 until connect( net::NodePtr( server.get( ) )) is > called, where it goes up to 1 and then gets decremented and deleted > when connect fails. > > Now that I know what's going on, I put a call to (gdb) server.get()- >>ref() which bumps the count up to 1 and it runs fine after that. But > if I put the code in the file, it doesn't.
Apparently something is wrong with your build setup. Both the RefPtr ctor and the call to ref() should increment the refCount (they do nothing else...). It can't be a generic Obj-C problem. I've just put to tests in tests/client/configVisitor.cpp, which also gets compiled using Obj-C if you use make - this one works. One guess would be memory layout due to some compile settings - can you print the address of the refCount variable, both in your code and in eq code? Cheers, Stefan. _______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

