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

undo related error
undo related error
i am creating a layout & when i try to undo the same , i am getting
error on undo() and the error description says "was open for undo"
how can i rectify the same?
something similar to the following can also produce the same error.
m_pdb->startundorecord() , where m_pdb is oddbdatabaseptr
oddbobjectid blkid;
oddbobjectid layoutid = m_pdb->createlayout(layoutname,&blkid);
m_pdb->undo()
i still have problem with undo of layout creation. i also have database
reactor added to my project and i see that undo() causes objectunappended event gets called and it fails after the third call where pobject is acdbblockbegin. please help.
which dd version do you use?
i tried in odamfcapp:
-view/setactivelayout/create new
-undo (ctrl/z)
it works
but redo (ctrl/y) crashs if creating new layout and making it active (as in current odamfcapp code) is made as single step.
sergey slezkin
thanks for looking into my query. i am using dd1.14. the problem i have reported is resolved now. it was occuring due to improper coding in database
reactor events.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)