查看单个帖子
旧 2009-05-04, 06:32 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】crash in setcurrentucs90 if called on r12.dxf and earlier

crash in setcurrentucs() if called on r12.dxf and earlier
crash in setcurrentucs() if called on r12.dxf and earlier
hi,
my app crashes in pdb->setcurrentucs() if called right after pdb=readfile(r12drawing). i'm using dd version 2.4.2.0.
to reproduce in odamfcapp, please locate method "oddbdatabaseptr codamfcappappenfile(lpctstr lpszpathname)"
and insert following snippet after "pdb = readfile(odstring(lpszpathname), false, m_bpartial);" line:
odgevector3d ucsxaxis = pdb->getucsxdir();
odgevector3d ucsyaxis = pdb->getucsydir();
if ((ucsxaxis != odgevector3d::kxaxis) || (ucsyaxis != odgevector3d::kyaxis))
{
bool bwriteenabled = pdb->iswriteenabled(); // == true ...
pdb->setcurrentucs (odgepoint3d::korigin, odgevector3d::kxaxis, odgevector3d::kyaxis); // <-- crash here on r12 drawing
}
i get the crash when opening/settingucs of "frontorthoucs-r12.dxf". my odamfcapp is built with debug vc2003mdd libs.
if i call setcurrentucs() on attached "frontorthoucs-r14.dwg" everything is fine. in my app, i need to have ortho/top view. the
command thedb->setcurrentucs (oddb::ktopview) also crashes on r12 ...
any idea what is wrong, workaround? thanks very much for any hint!
filip
attached files
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)