询问者
locale::global异常~

问题
全部回复
-
>>通过调用堆栈发现时在 执行locale::global(loc); 调用时,内部出现的异常。
请描述下出现了什么异常,把错误信息发出来。
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Hi icove,
没有更多的信息,我们无法很好的帮您分析问题。希望您能尽量提供我们需要的信息。
谢谢您的理解!
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Unhandled exception at 0x104aef8c (msvcp90d.dll) in XXX.exe: 0xC0000005: Access violation reading location 0xfdfdfdfd.
在执行 old_loc = locale::global(locale(""));时出现的异常。
该异常定位到xlocnum中的第151行
_Dp = _MAKLOCCHR(_Elem, _Ptr->decimal_point[0], _Lobj._Getcvt());
其中依次堆栈为:
xlocale文件中365行: _Locimp::_Makeloc(_Lobj, _Cat, _Ptr, 0);
locale.cpp文件中95行: _Locimp::_Makewloc(lobj, cat, ptrimp, ptrloc);
wlocale.cpp文件中48行: ADDFAC(_Tw4, cat, ptrimp, ptrloc);
不知道提供的信息够不够全,请帮忙解决。