几何尺寸与公差论坛

 找回密码
 注册
查看: 248|回复: 2

review PR 249849 PCDMIS crash when editing FCF true position

[复制链接]
发表于 2008-7-26 14:17:30 | 显示全部楼层 |阅读模式
review PR 249849 PCDMIS crash when editing FCF true position
<< Thomas Pettersson  --  08/23/07  10:56:51>>
<<END>>
<< Thomas Pettersson  --  08/23/07  10:56:19>>
PCDMIS crash when editing a FCF true position. Just deleted one of feaure to the FCF calculation and open FCF true position with F9. When clicking on the form PCDMIS crash.,
Using the PCDMIS version from 3 Aug 2007
Steps to reproduce:
load test4b.prg
delete CIR3
Open FCFLOC1 with F9
Click on Clear buttom
PCDMIS crash
Results:
PCDMIS crash
Expected Results:
PCDMIS should keep running
<<END>>
 楼主| 发表于 2008-7-26 23:46:48 | 显示全部楼层

回复: review PR 249849 PCDMIS crash when editing FCF true position

// PR249849 - if we deleted a feature, we must rebuild the array m_leaderFeatures
      if( newptr == NULL )
      {
        CPCDcommand ** leaderFeatures = NULL;
        if( GetNumLeaderLines() > 1 )
        {
          leaderFeatures = new CPCDcommand *[GetNumLeaderLines()-1];
          int inx = 0;
          for(int j=0; j<GetNumLeaderLines(); j++ )
          {
            if( m_leaderFeatures[j] != NULL )
              leaderFeatures[inx++] = m_leaderFeatures[j];
          }
        }
        SetLeaderFeatures(leaderFeatures, GetNumLeaderLines()-1);
        delete [] leaderFeatures;
      }
      break;
    }
 楼主| 发表于 2008-7-26 23:50:10 | 显示全部楼层

回复: review PR 249849 PCDMIS crash when editing FCF true position

T:\V43B\INCLUDE\FEATCTRLFRM.H(935):    m_leaderFeatures = NULL; // PR249849
  T:\V43B\INCLUDE\FEATCTRLFRM.H(936):    if( in_num_feats > 0 ) // PR249849
  T:\V43B\INCLUDE\FEATCTRLFRM.H(944):    m_numLeaderLines = in_num_feats; // PR249849
  T:\V43B\DIMENS\FEATCTRLFRM.CPP(11600):      // PR249849 - if we deleted a feature, we must rebuild the array m_leaderFeatures
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 00:16 , Processed in 0.036755 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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