查看单个帖子
旧 2009-05-06, 07:29 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)