几何尺寸与公差论坛

 找回密码
 注册
查看: 136|回复: 0

PR #253855 Crash if ending round slot feature

[复制链接]
发表于 2008-3-19 09:01:58 | 显示全部楼层 |阅读模式
V44B\TUTORSTEP\MEASGUESSTUTORSTEP.CPP
#include "hit_basi.h"

          // Also clear the parent feature since this is used by
          // CHitTrackerParameters - PR253855 TJ 3/18/08
          ((CPCDbasic_hit *)loop)->m_pParentFeature = NULL;


comment:
<< Troy Johnson  --  03/18/08  13:32:24>>
I have fixed this. If the guess routine guessed a scan, we were setting m_pParentFeature to the scan object. However, if we then guess another feature we weren't setting this to NULL. In the CHitTrackerParemeters::create_text we check this value to see if we are in a scan. Since the scan was deleted this value was garbage. I reset this along with some other parameters in CMeasGuessTutorStep::CreateStepCommand().
Files Uploaded:
V43R\TUTORSTEP\MEASGUESSTUTORSTEP.CPP
V43B\TUTORSTEP\MEASGUESSTUTORSTEP.CPP
V44B\TUTORSTEP\MEASGUESSTUTORSTEP.CPP
<<END>>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 18:54 , Processed in 0.034328 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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