This is 0 by 8,
If there are suitable for this exception handler, the program will continue to run safely,
Osg: : ref_ptr & lt; Osg: : Group & gt; MRoot;
Void COSGObject: : InitSceneGraph ()
{
MRoot=new osg: : Group;
}
The inline ref_ptr & amp; Operator=(T * PTR)
{
If (_ptr==PTR) return * this;
T * tmp_ptr=_ptr;
_ptr=PTR;
If (_ptr) _ptr - & gt; Ref ();
//unref second to prevent any deletion of any object which took
//be referenced by the other object. Appropriate precautions rp is the child of the
//the original _ptr.
If (tmp_ptr) tmp_ptr - & gt; Unref ();
Return * this;
}
_ptr & lt; Unable to read from the memory & gt;
CodePudding user response:
If (_ptr==PTR) return * this; The _ptr unable to read from memory