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

yang686526 2009-05-06 08:02 PM

【转帖】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


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