查看单个帖子
旧 2009-05-04, 05:15 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】c== exception on recompute dimension block

c++ exception on recompute dimension block
c++ exception on recompute dimension block
hi everyone,
attached is a file that throws a c++ exception when i try to upgrade and downgrade the open of a particular dimension.
my code is very simple :
double measurment = 0.0f;
try {
dimptr->upgradeopen();
// get the dimension measurement here.
measurement = dimptr->measurement());
dimptr->downgradeopen();
} catch( oderror &e ) {
return null;
} catch( ... ) {
return null;
}
and the memory seems to get corrupted as the smart pointers try to release and invalid memory location.
any ideas i can do to get around this other than catch the exception and ignore it?
if a bug, i hope it helps in finding it and fixing for future versions.
cheers
jason
attached files
hello jason,
it is really bug with recomputer dimension. you may catch the exception and ignore it (dimension isn't changed here). we will try to fix it in next release. thank you for detail report.
best regards,
sergey z.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)