查看单个帖子
旧 2009-05-06, 11:12 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)