Hi Robert,
I have more input now after tracing this issue
virtual void objectDeleted(void* obj)
{
T* ref_obj = static_cast<T*>(obj);
OpenThreads::ScopedLock<OpenThreads::Mutex>
lock(*getObserverMutex());
if (ref_obj->referenceCount() == 0) _ptr = 0;
}
ref_obj seam to be deleted here. It is not NULL and it has bunch of non
sense data in the members. Any idea?
-Nick
On Fri, Feb 19, 2010 at 6:07 PM, Robert Osfield <[email protected]>wrote:
> Hi Nick,
>
> On Fri, Feb 19, 2010 at 3:50 PM, Trajce (Nick) Nikolov
> <[email protected]> wrote:
> > still crashing. I am building debug now
>
> Is it still crashing with Michael's suggestion of add the mutex lock
> to the observer_ptr<> destructor? I've just checked in this fix.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org