VS2008 C ++ std :: set< std :: string> .clear()挂起 [英] VS2008 C++ std::set<std::string>.clear() hangs

查看:205
本文介绍了VS2008 C ++ std :: set< std :: string> .clear()挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已应用所有补丁的Windows 7 x64.

Windows 7 x64 with all patches applied.

英特尔至强

8GB内存

4个CPU内核

单线程应用程序.

std :: set< std :: string>具有1671168 std :: string值的容器,全部保留40个字符空间

std::set<std::string> container with 1671168 std::string values all with reserved 40 char space

std :: set.clear()挂在xtree行971上:_Erase(_Root());调用_Lockit :: _ Lockit_ctor()

std::set.clear() hangs at xtree line 971: _Erase(_Root()); which calls _Lockit::_Lockit_ctor()

 

re:TestDataSynthesizer应用

re: TestDataSynthesizer app

推荐答案

我尝试使用Windows 7 x64,Visual Studio 2010调试模式重现该问题.我没有收到您所做的错误消息,但我的应用程序只是挂在对std :: set.clear()的调用上.

I tried to reproduce the problem using Windows 7 x64, Visual Studio 2010 debug mode. I didn't get the error message you did, but my application simply hung on the call to std::set.clear().

我建议将此错误提交给 http://connect.microsoft.com ,并指出两个Visual Studio 2008都存在问题和Visual Studio2010.请规定是否使用VS 2008 SP1.另外,发布 链接到这里,以便我们对其进行投票.

I suggest submitting this bug to http://connect.microsoft.com, and indicate there is a problem with both Visual Studio 2008 and Visual Studio 2010. Please stipulate whether you appled VS 2008 SP1. Also, post the link here so we can vote on it.

 


这篇关于VS2008 C ++ std :: set&lt; std :: string&gt; .clear()挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆