[请问]AutoCAD退出时弹出致命错误
在ARX中添加了进行实体生成和修改的操作后,每次退出时都跳出致命错误:致命错误:Unhandled Access Violation Writing 0x0014 Exception at 7c01054bh.
仔细检查了一下所有打开的实体都已经关闭了阿
是什么原因呢?
找到了问题产生的原因了:
再使用选择集时,我定义了包含两个条件的过滤器:
struct resbuf eb1,eb2;
//设定层
eb1.restype = 8;
eb1.resval.rstring = (char*)LPCTSTR(layer);
//设定类型
eb2.restype =0;
eb2.resval.rstring="3DSOLID";
eb1.rbnext = &eb2;
eb2.rbnext=NULL;
acutRelRb(&eb1);
acutRelRb(&eb1);
如果改成创建的方式就没有问题了
struct resbuf* eb1=acutBuildList(RTDXF0, "3DSOLID",8,(char*)LPCTSTR(layer), RTNONE);
acutRelRb(eb1);
请问是哪里出错了?
页:
[1]