高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|