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