引發了例外: 讀取訪問權限沖突。
this 是 0x8。
如有適用于此例外的處理程式,該程式便可安全地繼續運行。
osg::ref_ptr<osg::Group > mRoot;
void COSGObject::InitSceneGraph()
{
mRoot = new osg::Group;
}
inline ref_ptr& operator = (T* ptr)
{
if (_ptr==ptr) return *this;
T* tmp_ptr = _ptr;
_ptr = ptr;
if (_ptr) _ptr->ref();
// unref second to prevent any deletion of any object which might
// be referenced by the other object. i.e rp is child of the
// original _ptr.
if (tmp_ptr) tmp_ptr->unref();
return *this;
}
_ptr <無法讀取記憶體>
uj5u.com熱心網友回復:
if (_ptr==ptr) return *this;這句 _ptr無法讀取記憶體轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/60116.html
上一篇:使用OpenGL畫三維圖形,坐標系問題以及結點標注問題
下一篇:C++多載()的問題
