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

debug assertion loading dxf file
debug assertion loading dxf file
hello,
i am getting a debug assertion when i try to read a dxf file. here is the message:
assertion failed: invalid execution., file \opendwg\dd2.02\dwgdirect_vc2003\source\ge\gegbl.c pp, line 24
can anyone tell me what condition is causing this assertion? i don't have the access to the source code, and the debugger doesn't give me good information. autocad and the mfc sample application can read the file, so i suspect that the problem is in my application somewhere, but i don't have a clear notion of exactly what the problem is.
i tried to attach the file, but was unsuccessful.
thanks,
bob
debug assertion means that some unexpected situation happened.
if an exception is thrown from inside of readfile() that means that some data in the file is invalid.
even if odamfcapp loads the file it's recover may report the source of problem (like zero length vector etc.).
sergey slezkin
i understand what a debug assertion is. i am trying to find out what condition is being tested at the line of code specified in my original post. the assertion is not happening during readfile. it is happening when i am iterating through the model space block to read entities (i should have been more clear about this.)
i will try running the sample again and checking the recover option.
also, i am using dwgdirect 2.2.0 and visual studio 2003 on windows xp pro.
thanks,
bob
the only thing i can say about
assertion failed: invalid execution., file \opendwg\dd2.02\dwgdirect_vc2003\source\ge\gegbl.c pp, line 24
(without call stack, dxf file and maybe your code)
is that an exception will be thrown from ge library code while executing the next line.
sergey slezkin
i used the recover function in the sample program (odamfcappdll.exe), and it displayed a list of 48 errors in the dxf file. the errors are related to the names of the model and paper space records and invalid vertex and face numbers in some polyface mesh records. (there seems to be no way to save this list of messages.)
also, when i try to view summary information about the file, i get a debug assertion at odtoolkit.cpp, line 595. if i ignore the assertions, the summary info eventually gets displayed.
i tried again to attach the file, but kept getting a connection reset error.
could you pm me an e-mail address where i can send the file directly?
thanks,
bob
official address is support_at_opendesign_dot_com
but sslezkin_at_softdev_dot_spb_dot_ru would work faster.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】creating a sat file out of dxf solid file yang686526 DirectDWG 0 2009-05-04 06:47 PM
【转帖】assertion firing when reading a dwg file yang686526 DirectDWG 0 2009-05-04 04:19 PM
【转帖】access violation loading dxf file yang686526 DirectDWG 0 2009-05-04 03:30 PM
【转帖】problem importing dxf file in sw2008 sp 4.0 - but no problem yang686526 SolidWorks二次开发 0 2009-04-13 01:34 PM
【转帖】auto create 11 flat pattern and save as dxf yang686526 SolidWorks二次开发 0 2009-04-13 09:08 AM


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


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