On 24 Apr 2012, at 22:33, Mathias Fröhlich wrote:

> I could by the length of the thread not exactly find what is going wrong and 
> how to reproduce this. But jut having a quick look at NasalPositiond.cxx, I 
> can see that this does not match the intented use of SGReferenced.
> I have checked in what is needed to match how it's intented to be used.
> 
> Given that you seem to experience dangling pointers and now things are 
> actually deleted when the reference count drops to zero - that did not happen 
> before, I guess that this makes things worse at first. But you might be able 
> to 
> find the real cause of the problem a little better now.
> 
> Else, I am online again tomorrow evening.

Okay, I guess I was assuming I can use SGreferenced the same way I use 
release/retain in Cocoa, or addRef/decRef in COM/XPCOM. But it seems as if this 
is not the case, from looking at your commit - I can't use SGreferenced as a 
virtual base, and I have to make the delete call by hand. 

I guess this is to avoid virtual method overhead on SGreferenced?

James


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to