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

file causing exception
file causing exception
we're using dd static ibs 2.1.0 built with vc8.
performing zoomextents() or vectorization on the attached file causes enotthatkindofclass exception to be raised in our application.
the dll versions of dd samples shipped with the build, seem to work without a problem on this file (both odamfcappdll.exe and odvectorizeex_dll.exe), but the problem is reproducible when i build the samples with static libs.
odamfcapp.exe debug crashes when trying to zoom extents or vectorize. odamfcapp.exe release works ok.
odvectorizeex.exe (both debug and release) gives the error: "exception caught: object of class acdbaligneddimension can't be cast to oddbdimensionrecomputepe."
what can be the problem?
attached files
the file contains dimension with missing block. as a result an attempt to load recomputedimblock module is made during vectorization.
static version of odvectorizeex is not linked with this module.
dll version of odvectorizeex loads recomputedimblock.drx which presents in the same folder.
if you use dll version of dd put recomputedimblock.drx into your application folder. if your configuration is static you need link with this module (see developers's guide/creating custom objects and applications for static modules usage).
btw, odamfcapp works for me...
sergey slezkin
yes, the problem does go away when we start linking with recomputedimblock.
we use dd libs for writing out dxf/dwg files and import from dxf/dwg/dxb files using vectorization. we are currently only linking with:
dd_vc8mt_acisbuilder.lib
dd_vc8mt_acisrenderer.lib
dd_vc8mt_br.lib
dd_vc8mt_db.lib
dd_vc8mt_ge.lib
dd_vc8mt_gi.lib
dd_vc8mt_gs.lib
dd_vc8mt_modelergeometry.lib
dd_vc8mt_root.lib
dd_vc8mt_spatialindex.lib
and we've provided our own module for rxrasterservices.
when the new version of library comes out, we plan to add:
dd_vc8mt_recomputedimblock.lib
dd_vc8mt_ft.lib
is there any other lib we should be linking with to avoid similar problems in the future?
regards,
varun
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)