查看单个帖子
旧 2009-05-06, 11:24 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem with odcmcolor in dd 2.03

problem with odcmcolor in dd 2.03
problem with odcmcolor in dd 2.03
after migrating from dd 1.14 to dd 2.03 , i am experiencing problem
my code is similar to as shown below
<<
void cexampleappgdidevice::setentitytraits(cexampleappd rawableobject* pent)
{
//............
odcmcolor odcolor;
if(pent!=null)
{
pent->getcolor(odcolor);
}
//...........
}
when i come out of the above function , the program is crashing after call to the destructors of odcmcolor & odstring
why does it happen? how can the problem be resolved?
cexampleappdrawableobject is a class that wraps oddbentity
getcolor() returns a member variable of type odcmcolor which actually is a member of cexampleappdrawableobject
setcolor() changes the oddbentity color as well as copies the color to the odcmcolor variable of cexampleappdrawableobject
i have attached a screen shot of part of call stack
regards,
george
attached images
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)