几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】exception when using -setpathname (http://www.dimcax.com/hust/showthread.php?t=16160)

yang686526 2009-05-05 10:03 AM

【转帖】exception when using -setpathname
 
exception when using ->setpathname
exception when using ->setpathname
tryingto update path in reference file using code below.
get correct reference file but get a exception when ->setpathname() is being called. what am i doing wrong please?
if ( pblock->isfromexternalreference() )
{
odstring referencename;
referencename = pblock->getname().c_str();
if ( 0 == referencename.compare ( userreferencename ) )
{
odstring newxrefpath( userreferencepath );
pblock->setpathname( newxrefpath );
break;
}
}
using dd 1.10up in vc 7.1
what kind of exception do you get? do you get it always?
sergey slezkin
i get...
microsoft c++ exception oderror @ 0x0012f408
in dbgheap.c line 209 in function _nh_malloc()
return _nh_malloc_dbg( nsize, nhflag, _normal_block, null, 0 );
any ideas??
myproblem is fixed now.
thank you


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