|
楼主 |
发表于 2008-8-4 14:14:01
|
显示全部楼层
回复: PR 253558 Try to create an FCF with a feature set and the ap crashes.
boolCPCDFeatCtrlFrm::CheckPlaneProjectionValid(intDimRes,CPCDcommand * pFeature)
{
boolbResult = false;
if( !pFeature )
returnbResult;
inttyp= pFeature->feature();
switch(typ)
{
caseF_PLANE:
if( DimRes == ID_INSERT_DIMENSION_PARALLELISM )
bResult = true;
break;
caseF_SET:
{
intiNumSetFeat = 1, iNumSetFeatNum = 1;
if(pFeature && (pFeature->type() == DCCSCAN_OBJECT || pFeature->type() == MANSCAN_OBJECT || pFeature->type() == BASIC_SCAN_OBJECT
|| pFeature->type() == MEASURED_SET || pFeature->type() == FILTER_SET) ) // PR232870 // PR244003
{
break;
}
elseif(pFeature && pFeature->type() == CONST_SET )
iNumSetFeatNum = pFeature->get_num_inputs();
else
iNumSetFeatNum = 1; // PR244003
CPCDcommand ** pSetFeatures = new (CPCDcommand * [iNumSetFeatNum]);
for( longii=0; ii<iNumSetFeatNum; ii++ )
{
pSetFeatures[ii] = NULL;
}
if(pFeature && pFeature->type() == CONST_SET )
iNumSetFeat = pFeature->get_inputs(pSetFeatures);
else
{
pSetFeatures[0] = pFeature;
iNumSetFeat = 1; // PR244003
}
ASSERT(iNumSetFeat == iNumSetFeatNum); // if this asserts please save your part program and contact me. Dave
for( longjj = 0; jj < iNumSetFeat; jj++ )
{
if(CheckPlaneProjectionValid(DimRes,pSetFeatures[jj]))
{
bResult = TRUE;
break;
}
}
delete [] pSetFeatures;
}
break;
}
returnbResult;
}
|
|