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