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