几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem with deleting oddbviewport object in version 1.14.01 (http://www.dimcax.com/hust/showthread.php?t=18106)

yang686526 2009-05-06 11:12 PM

【转帖】problem with deleting oddbviewport object in version 1.14.01
 
problem with deleting oddbviewport object in version 1.14.01
problem with deleting oddbviewport object in version 1.14.01
hi to all,
a problem occurs on deleting an oddbviewport object. by now the deleting is done in the following way:
oddbviewportptr pviewport;
//...get the viewport
pviewport->erase();
//...update the derived odgsbasevectorizedevice object
this code has no problems with the older version of the dwgdirect library.
in the new version the viewport seems to be not properly deleted and it causes the application to crash.
is there anything to be called to delete it correctly? maybe something to unregister it or to update the collection with all the viewports.
thanks in advance,
nino
for example you can see the situation in the odamfcapp sample if you try to delete an oddbviewport object from the tree and you can notice an assert in the gsbasevectorizer.cpp. then switch to the relevant layout window and the application will crash.
thanks for all suggestions,
nino
hi nino,
yes, we can reproduce that. it's a bug. we'll fix it.
hi dmitry,
if the fix is something small, then is there a chance that you send me the source code fix through the mail? (i'm from the founding members). this bug tortures me too and i don't know when a new dwgdirect version would be released...
thanks a lot in advance.
best regards
chudomir
quote:
originally posted by dmitry a. novikov
hi nino,
yes, we can reproduce that. it's a bug. we'll fix it.
thanks.
we hope it wiil be fixed in the next build.
regards,
nino

chudomir, i sent you a letter with fix.
sincerely yours,
george udov


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