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

can't load dwg file
can't load dwg file
dwgdirect can't load the file i have send in the attachment. autocad 2002 and 2005 open it. seems the problem is inside of dd, it throw an exception ("ivalid index") when executes the ddbhostappservices::readfile function:
file "exhostappservices.cpp"
oddbdatabaseptr exhostappservices::readfile(const odchar* filename,
bool ballowcpconversion, bool bpartial, oda::filesharemode shmode, const odpassword& password)
{
oddbdatabaseptr pres = m_dwgcollection.lookup(filename);
if(pres.isnull())
{
// this function throws an exeption
pres = oddbhostappservices::readfile(filename, ballowcpconversion, bpartial, shmode,
password);
m_dwgcollection.add(pres.get());
}
return pres;
}
please, check it, if it is dd bug or mine?
attached files
this is dd bug (dd throws exception as hatch in the file contains invalid loops).
regards,
sergey vishnevetsky
do you plan to fix it in the next version?
by the way, old version of my program, which uses odt, can load this file.

we fixed this defect on current code. fix will be available in next release/update.
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)