我们在我们的视觉工作室应用程序中使用了地图。在调试模式下,插入进行得很好。但是在释放模式下插入地图时,抛出以下异常“exe中0x201a1cfd(dll)处的未处理异常:0xC0000005:访问冲突读取位置0xcdcdcdd1。” 当控制通过下面的代码行时。
"iterator _Where = this->lower_bound(_Keyval);"
mapped_type& operator[](const key_type& _Keyval)
{ // find element matching _Keyval or insert with default mapped
iterator _Where = this->lower_bound(_Keyval);
if (_Where == this->end()
|| this->comp(_Keyval, this->_Key(_Where._Mynode())))
_Where = this->insert(_Where,
value_type(_Keyval, mapped_type()));
return ((*_Where).second);
}
这段代码位于外部依赖项内的映射文件中。
请任何人提出解决方案..提前致谢。