几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-05-06, 04:33 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】large compiled file size

large compiled file size
large compiled file size
i have written a dll using the latest dwgdirect that simply returns
references and raster images to the caller. all is great, except for
the fact that the dll is 3.6 mb!!
i am using the implementations of the hostappservices and system services
that is provided with odreadex. i excluded files from the build
that aren't used, but the file size is still rather large. does anyone
have any tips as to how i can reduce this for such a simple app?
if you need me to post any code or anything, i will be happy to.
thanks!
probably you're linking with the static libraries of dwgdirect and they are inserted to your binary output.
link with the dynamic ones, but you'll have to redistribute them with your product - probably it is dd_db that is the bad one...
dynamic linking should go if you have several projects connected to dwgdirect, but if you have only one project, you probably have to accept this size.
regards
chudomir
yes, i am statically linking the libraries and this is really the only
thing i am using dwgdirect for so static linking made sense.
i am using the release libraries as to get rid of the debug code.
i can manage this size, but it would be cool if i could reduce it. if i
can't, i will live with it
if you used odreadex as a base have you removed calls to :drxinitmodelergeometry() and :drxuninitmodelergeometry() ?
if your application needs no acis vectorization or converting between dwg r18 and other formats you need no these calls and linking with acisbuilder, acisrenderer and modelergeometry
sergey slezkin
quote:
originally posted by sergey slezkin
if you used odreadex as a base have you removed calls to :drxinitmodelergeometry() and :drxuninitmodelergeometry() ?
if your application needs no acis vectorization or converting between dwg r18 and other formats you need no these calls and linking with acisbuilder, acisrenderer and modelergeometry
thanks for the reply. i am not using those calls, so those libs shouldn't
be linking.
i have attached a file that has the code i have written. i have the
appropriate implementations from odreadex, such as the system
services and hostappservices so that it will compile. i found i also
need to include exgienhancedmetafile, exgirasterimage, exodstorage, exodfilebuff for the project to build. these are
dependencies of systemservices and hostappservices.
attached files (5.1 kb, 15 views)

you can comment out most of this dependencies from exservices (simply return null for metafile, raster image etc.)
odfilebuf is required until you replace it with your own implementation.
sergey slezkin
i commented some of the code out and was able to reduce the size a
bit, but i think that's just the size it has to be. thanks!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】file size problem yang686526 DirectDWG 0 2009-05-05 10:54 AM
【转帖】different vectorization of same file on windows and mac yang686526 DirectDWG 0 2009-05-04 07:29 PM
【转帖】creating a sat file out of dxf solid file yang686526 DirectDWG 0 2009-05-04 06:47 PM
文件系统的操作 cad DirectDWG 0 2007-01-28 04:26 PM


所有的时间均为北京时间。 现在的时间是 01:19 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多