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

yang686526 2009-05-06 07:29 PM

【转帖】oddbblocktablerecord.getgeomextents crash my ap
 
oddbblocktablerecord.getgeomextents crash my ap
oddbblocktablerecord.getgeomextents crash my ap
i use my bufferstream(class cfilestreambufublic odstreambuf) and open dwg file
pdatabase=readfile(cdwgengine::makefilestring(&fil e,false),false);
all return ok,then
oddbblocktablerecordptr pblock=pdatabase->getactivelayoutbtrid().safeopenobject();
if (!pblock.isnull())
{
odgeextents3d extent;
pblock->getgeomextents(extent);
}
program crash on getgeomextents
that's ok in the dd version maked on 2007/9/26,but crash in the dd version maked on 2008/9/16
i copy the code to the sample(singledocdll),that's ok,i think that i make something wrong
how can i correct or find the bug ?
does the code crash on any file or some specific one?
can you reproduce it in one of our samples (perhaps with modifications)?
(excrept that you've posted is not enough)
vladimir


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