几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】a problem when calling appendoddbentity90 (http://www.dimcax.com/hust/showthread.php?t=14959)

yang686526 2009-05-04 03:12 PM

【转帖】a problem when calling appendoddbentity90
 
a problem when calling appendoddbentity()
a problem when calling appendoddbentity()
hi,
now i have a problem when calling oddbblocktablerecord::appendoddbentity( ... ). my application sometimes calls this function before adding this block to the block table (i.e. when adding entities to the block, the block does not reside in the block table). in the versions such as 1.10,1.11 and so on before 1.12, it works very fine. but after upgrading my application to 1.12, i find that it doesn't work any longer in this case, it always throws an exception. when i changed my code to adding the block to the block table before appending entities into it, there will be no exception. what does cause this exception? because in my application there have many places like this, is there any method to fix this error and avoid the massive changes in my code?
thanks,
enigma
this is result of my optimization :-(
the fix will be available in next release.
sergey slezkin


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