高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|