几何尺寸与公差论坛------致力于产品几何量公差标准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-05, 09:55 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】exception class oderror-fileexception

exception class oderror_fileexception
exception class oderror_fileexception
i am using borland c++ builder 6 and a project modeled after exservices. i am writing using m_pdb->writefile(fb, oddb::kdwg, oddb::vac18, false);
txt.shx is not found (it is not on my system)
odbasefilebuf:pen() is throwing the exception which systemservices::accessfile() should catch.
i have overridden getpreferablefont() and getsubstitutefont() for my hostappservices class, but neither function is called.
there isn't even any text in the file i am trying to write, so i don't know why txt.shx would be needed.
any ideas?
call stack:
odbasefilebuf:pen
odrdfilebuf:pen
odrdfilebuf:pen
systemservices::createfile
systemservices::accessfile
dbhostappservices::findfile
odfiledependencymanagerimpl::updatepath
odfiledependencymanagerimpl::countentries
oddwgr18filewriter::createsectiondic
oddwgr18filewriter::writedatabase
oddbdatabase::writefile
save
you may safely ignore this call
your findfile sould return false, if there is no txt.shx.
it is asked for, because in default database, there is always some default text style (usually referring to txt.shx). text style creates file dependency, and while saving file, dependencies are updated.
vladimir
ok, but...
ok, i gues the first four exceptions are expected, but any clues on the others:
1. oderror_fileexception - odrdfilebufen
2. oderror_fileexception - odrdfilebufen
3. oderror_fileexception - odrdfilebufen
4. oderror_fileexception - odrdfilebufen
5. oderror_wasopenforwrite - oddwgr18filewriter::wrobjects
6. oderror - save
7. oderror - oddbdatabase::release
8. external exception eefface
a dwg file is created, but it is only 2k, and autocad says it is invalid.
if oddwgr18filewriter::wrobjects throws oderror_wasopenforwrite, it means that some object was open for write and not closed, before saving database.
vladimir
quote:
originally posted by wvk
if oddwgr18filewriter::wrobjects throws oderror_wasopenforwrite, it means that some object was open for write and not closed, before saving database.
is there some way i can ensure that all objects are closed before writing occurs?
all objects that i have opened should be out of context when i write to file (at least i can't find any that are still in context), and yet it still produces this error.
thanks,
chuck
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】2005 link error yang686526 DirectDWG 0 2009-05-04 02:57 PM
【转帖】objectarx&dummies教程(十一)—— custom objectarx class yang686526 ObjectARX(C++) 0 2009-04-16 10:39 AM
C++风格与技巧(转) huangyhg vc编程 0 2008-10-27 11:03 AM
C++风格与技巧 Faq huangyhg vc编程 0 2007-10-29 02:24 PM
三十分钟掌握stl yogy vc编程 0 2007-05-18 03:33 PM


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


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