华拓科技网
您的当前位置:首页Crashed when delete OGRSpatialReference objects!

Crashed when delete OGRSpatialReference objects!

来源:华拓科技网

Crashed when delete OGRSpatialReference objects!

OGRSpatialReference* oSRS = new OGRSpatialReference();
oSRS->SetFromUserInput(constChrPtr);
{
      ...  
}
delete oSRS;//crashed here!
//OSRDestroySpatialReference(oSRS) ;//also crashed!

//why?

/*Some one say that  may be there are defects in the destructor of this class or the const char* parameter may not properly used here?*/

 Similar problem can be referenced .

因篇幅问题不能全部显示,请点此查看更多更全内容