Help--请教各位高手
<P> 代码如下:</P><P>AcDbDatabase *pCurDb = NULL;</P>
<P> pCurDb = acdbHostApplicationServices()->workingDatabase();</P>
<P> pCurDb->getLayerTable(pLyrTable, AcDb::kForWrite);<BR> // Check to see if the layer name exists<BR> // Note how we can change the open mode<BR> // of the layer table from AcDb::kForRead<BR> // to AcDb::kForWrite</P>
<P>// pLyrTable->upgradeOpen();<BR> pLyrTblRecord = new AcDbLayerTableRecord;</P>
<P> pLyrTblRecord->setName("answer");<BR> pLyrTblRecord->setColor(color);<BR> pLyrTblRecord->setLinetypeObjectId(ltypeId);</P>
<P> pLyrTable->add(pLyrTblRecord);</P>
<P> }</P>
<P>当执行到 pLyrTable->add(pLyrTblRecord);时, cad中总是出现未处理异常。。。(Access Violation Reading 0xcccccccc),地址5EF287CH。麻烦各位大侠帮忙解决一下</P>
<P>QQ:371637932</P> pLyrTable还没有关闭 不好意思,已经关闭了,只是没有传上来,谢谢
页:
[1]