查看单个帖子
旧 2009-05-05, 09:33 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】erasing an oddbcircle

erasing an oddbcircle
erasing an oddbcircle
hello,
i have the following code:
oddblineptr pline;
pline = oddbline::cast(idline1.safeopenobject
(oddb::kforwrite));
pline->erase();
pline = oddbline::cast(idline2.safeopenobject
(oddb::kforwrite));
pline->erase();
oddbcircle* pcircle;
pcircle = oddbcircle::cast(idcircle.safeopenobject
(oddb::kforwrite));
pcircle->erase();
while the line is erased correctly, erasing the circle throws an error message, an assertion failed in file dbobject.cpp, line 344,
invalid execution.
if i omit the assertion, then the program throws an oderror exception with the following error description "not opened for read".
could this be a dd bug?.
sorry, the problem is using an oddbcircle* instead of an oddbcircleptr.
best regards.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)