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

setuplayoutviews
setuplayoutviews
in the single doc project, if i change the line below as follows, i get an access violation in the dd1.13, i was wondering if this is the correct thing to do or not.
m_pdevice = oddbgsmanager::setupactivelayoutviews(m_pdevice, this);
to.
m_pdevice = ddbgsmanager::setuplayoutviews(theapp.m_pdb->getmodelspaceid(), m_pdevice, this);
the access violations is at this actuall call.
cheers
jason

1. first parameter of setuplayoutviews is oddbobjectid of layout. oddbdatabase::getmodelspaceid() returns the oddbobjectid of model space block.
2. access violation is possible if theapp.m_pdb is null, for example.
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)