几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】performing deep clone crashes (http://www.dimcax.com/hust/showthread.php?t=17891)

yang686526 2009-05-06 09:56 PM

【转帖】performing deep clone crashes
 
performing deep clone crashes
performing deep clone crashes
this code is crashing
oddbidmappingptr pmapping = oddbidmapping::createobject();
oddbattributedefinitionptr clonedattdef = mattdef->deepclone( *pmapping );
is it the correct way to deep clone?
do i need to keep any block table record in write mode?
please let me know.
oddbobject::deepclone() should not be called directlyfrom client code. it's purpose is to have ability to override it in custom objects.
use oddbdatabase::deepcloneobjects() instead.
sergey slezkin


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