dwg load error
dwg load error
hi
i have a dwg that cannot be loaded by dwgdirect 1.11 (it did not work in 1.10 either). it can be opened without problems in autocad. in dwgdirect it fails with an unknown error, that is not an oderror. here is the stack trace:
code:
dwgaudit.exe!oddwgfileloader::loadobject() + 0x138 c++
dwgaudit.exe!oddwgfileloader::loadobject() + 0x1d8 c++
dwgaudit.exe!oddwgr18fileloader::loadobject() + 0x40 c++
dwgaudit.exe!odobjloadresolver::queryx() + 0x3b c++
dwgaudit.exe!oddbobject::cast() + 0x1b c++
dwgaudit.exe!oddbobjectid:

penobject() + 0x83 c++
dwgaudit.exe!oddbobject::downgradeopen() + 0x79 c++
dwgaudit.exe!oddbdatabase::readfile() + 0x1df c++
dwgaudit.exe!oddbhostappservices::recoverfile() + 0x5c c++
the same happens when i use readfile(...). should i send the dwg to the support e-mail address?
the file was created by autocad 2004 map. are there any known issues?
simon
hi,
you can attach you file to a post at forum. e-mailing to support works too.
you also can e-mail the file to me:
sslezkin_at_softdev.spb.ru
(_at_ = @)
sergey slezkin
the crash is caused by acdbindex object presenting in the file. our code was written in assumption that objects of that class can't be instantiated (that this class can be only a parent class for layer index,
spatial index and custom classes).
objectarx help says that it's abstract base class for spatial and layer indices. and the file shows that this is not the case. probably acdbindex is used by ac 2004 map for storing time stamp.
the fix for this problem will be available in next update.
sergey slezkin