几何尺寸与公差论坛

 找回密码
 注册
查看: 282|回复: 1

PR 253558 Try to create an FCF with a feature set and the ap crashes.

[复制链接]
发表于 2008-8-4 14:01:20 | 显示全部楼层 |阅读模式
<< Don Turcotte  --  02/28/08  16:16:54>>
Try to create an FCF with a feature set and the ap crashes.  This problem was introduced with the changes for Task 103855 so it affects only V43B and V44B.

Steps to reproduce:
Load the program attached to 252089 and try to create an FCF using the SCN1 set.

Results:
ap crashes
<<END>>

<< Changes made by Neil Kay -- 07/23/08  16:31:14>>
Action:  Paola Pallo to Yanhua Huang
<<END>>
<< Changes made by Neil Kay -- 07/23/08  14:58:31>>
Action:  David Petrizze to Paola Pallo
<<END>>
<< Don Turcotte  --  02/28/08  16:42:19>>
Fixed in V43B and V44B (only these versions were affected).
See the changes marked "R253558"
Files inserted to server
------------------------
V43B\DIMENS\FEATCTRLFRM.CPP
V43B\INCLUDE\FEATCTRLFRM.H
V44B\DIMENS\FEATCTRLFRM.CPP
V44B\INCLUDE\FEATCTRLFRM.H

<<END>>
<< Changes made by Don Turcotte -- 02/28/08  16:42:43>>
Action:  Don Turcotte to David Petrizze, Status:  OPEN to REVIEW
<<END>>
 楼主| 发表于 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;

}

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 00:29 , Processed in 0.037240 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表