几何尺寸与公差论坛------致力于产品几何量公差标准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-04, 03:31 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】access violation while exploding block reference

access violation while exploding block reference
access violation while exploding block reference
i am using dwgdirect 1.10, update 1 and visual c++ 6.0. i get an access violation when i attempt to load a particular autocad 2000 format dwg file. the file has external references to the other two files, and it appears that the exception happens when i call oddbblockreference::explode() on the block reference that points to the first external reference. i have been able to reproduce the problem using the odreadex sample (modified so that the block reference dumper class calls explode) and with the mfc sample.
i attempted to attach the files that cause the problem to this message, but i was unable to do so. if someone can look at this problem, please send me a private message (or reply here) with your e-mail address, and i will send you the file directly. also, let me know if you need the file in a format other than zip.
this does not occur on all external references, so i expect that there may be something about this specific dwg file that is causing the crash. i can load the file in autocad without problem.
thanks,
bob
you can e-mail the files to me. i will look into the problem.
sslezkin_at_softdev.spb.ru
replace _at_ with @, please.
zip would be ok.
sergey slezkin

problem is fixed. fix will be available in 1.11 update or in 1.12.
sincerely yours,
george udov
hello.
i downloaded version 1.11.01.00, and i am still having problems with oddbblockreference::explode() when loading a reference to this particular file. was this fix supposed to be in the new version? instead of "access violation" exceptions, i am now getting "float invalid operation" exceptions being thrown from oddbblockreference::explode().
i tried to attach a .zip file containing the .dwg files that cause the problem, but was unable to do so. if you post an e-mail address, i will send the file directly.
bob

bob,
i cannot reproduce this problem. i explode blockreference with handle 4e03 (historic.dwg) in odamfcapp, and i can't get any "float invalid operation" exceptions.
the questions are:
1) am i explode correct blockreference?
2) are you able to reproduce the problem in odamfcapp?
3) are you use lib version or dll? debug or release?
sincerely yours,
george udov
the previous files you sent (historic.dwg) work ok for me.
do you mean other particular files?
you can use my e-mail for sending them.
sergey slezkin
thanks for the quick replies.
historic.dwg is the correct file. it has a cross reference to topo-8.dwg, and this is where i run into problems. i even had problems loading topo-8.dwg by itself (i.e., not as a cross reference.)
i was able to load the files using odamfcappdll, and i am using the dll version of dwgdirect in a debug build. since i didn't have the same problem with the sample application, i will recheck my build settings to make sure i am using the correct libs and dlls, and let you know if i am still haveing trouble.
this is the only file that has had this problem.
bob
one more piece of information...the exception happens on a block reference with handle=51d0 in file topo-8.dwg. there appear to be quite a few references to this block, and this is the first one.
bob
i double-checked my build settings and dwgdirect files. my build settings specify the correct include and lib paths, and i have the latest files (headers, libs, and dlls) in place. i don't think i mentioned that the program i am working on is an activex control, if that makes any difference.
i built a version of the odareadex sample program that uses dlls and explodes all block references, and it had no problem with this file. this would seem to indicate that the exception is a side-effect of something i am doing, so i will have to keep looking.
any suggestions you might have will be appreciated.
thanks,
bob
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】a ordinate dimension problem when exploding yang686526 DirectDWG 0 2009-05-04 03:08 PM
【转帖】a dimension error yang686526 DirectDWG 0 2009-05-04 03:05 PM
【转帖】itle block template = controlled documen yang686526 American standards 0 2009-05-04 10:45 AM
【转帖】asme - where to star yang686526 American standards 0 2009-04-29 07:28 PM
【转帖】editing blocks per drawing shee yang686526 SolidWorks二次开发 0 2009-04-13 10:39 AM


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


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