查看单个帖子
旧 2009-05-06, 08:02 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】oddbpolyline-convertto90 crashes

oddbpolyline->convertto() crashes.
oddbpolyline->convertto() crashes.
the code excerpt below crashes at the convertto() call. ppolyline is of type oddbpolyline. is this a bug in the library, or am i doing something wrong?
oddb2dpolyline* ppoly2d = new oddb2dpolyline();
if(ppolyline->convertto(ppoly2d)==eok){
// do something.
...
}

does your ppolyline point to valid database resident oddbpolyline object?
sergey slezkin

yes, it does. i know, because i can work with it if i do not attempt to call convertto()

what kind of crash do you have? was oddbpolyline entity loaded from file or created via api?
if second parameter of convertto is not specified - default is used and oddbpolyline will be replaced in database by new oddb2dpolyline. in such case source oddbpolyline must be database resident.
oddbpolyline::convertto() is used while saving database to r12. does saving to r12 work for your polyline?
i can try to look into the problem if you e-mail me something (file or a piece of code) to reproduce the problem.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)