几何尺寸与公差论坛------致力于产品几何量公差标准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 odcmcolor in dd 2.03 (http://www.dimcax.com/hust/showthread.php?t=18140)

yang686526 2009-05-06 11:24 PM

【转帖】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


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