![]() |
【转帖】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. |
所有的时间均为北京时间。 现在的时间是 12:33 PM. |