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

yang686526 2009-05-07 04:14 PM

【转帖】spatial Index Error With Dd231
 
spatial index error with dd231
spatial index error with dd231
hello,
my application allows user to modify the position of an oddbline object in database.
i was using this code to achieve this:
code:
supposed idline1 and idline2 are previously set
and coordinates are introduced by user:
oddblineptr pline1;
pline1 = oddbline::cast(idline1.safeopenobject(oddb::kforwrite));
oddblineptr pline2;
pline2 = oddbline::cast(idline2.safeopenobject(oddb::kforwrite));
//start, end, line 1
odgepoint3d ptaux;
ptaux.x = fcoordinatex[0][0];
ptaux.y = fcoordinatey[0][0];
pline1->setstartpoint(ptaux);
ptaux.x = fcoordinatex[1][0];
ptaux.y = fcoordinatey[1][0];
pline1->setendpoint(ptaux);
//start, end, line 2
ptaux.x = fcoordinatex[0][1];
ptaux.y = fcoordinatey[0][1];
pline2->setstartpoint(ptaux);
ptaux.x = fcoordinatex[1][1];
ptaux.y = fcoordinatey[1][1];
pline2->setendpoint(ptaux);
this code works fine until 220 release, but throws the following exception with 231:
hi,
it looks like a bug.
but i don't see how to reproduce it in the singledoc that you attached.
hello,
i've just reproduced the problem also on dd2401. when you execute the example (in debug mode) just draw lines and be sure that onmousemove is executed many times. this way error will happen at an undetermined moment.
sometimes, before the error happens you can see how when introducing a line
the lines that have been previously drawed dissapear and then reappear randomly.
yours,
aser.


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