iCAx开思网
标题:
NX9.0二次开发问题
[打印本页]
作者:
shangyunshun
时间:
2013-12-27 23:28
标题:
NX9.0二次开发问题
有一段二次开发代码:
void SelectMethod()
{
PropertyList* properties = hubSelection->GetProperties();
std::vector<TaggedObject* > geomCol = properties->GetTaggedObjectVector("SelectedObjects");
if(geomCol.size() > 0)
{
m_hubGeom = dynamic_cast<Face*>(geomCol[0]);
}
else
{
m_hubGeom = NULL;
}
delete properties;
properties = NULL;
}
这个代码在NX8.5运行的时候,没有问题。但是在NX9.0上运行的时候会报vector "geomCol" 析构的时候出错,这个是什么原因啊?求高手指点下。我用的是VS2010+NX9.0
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3