我正在使用Windows XP Professional SP3,并且最近切换到Visual Studio 2010 Professional SP1来处理C ++项目。
如果我尝试在解决方案资源管理器中右键单击一个项目,然后选择“添加” >>“资源...”,则会显示此错误弹出窗口:
“操作无法完成。未指定的错误”
然后唯一的选择是单击“确定”。
还有其他人遇到吗?
using (Stuff1 stf1 = new Stuff1(...)) // Allocation of stf1
using (Stuff2 stf2 = new Stuff2(...)) // Allocation of stf2
{
try
{
// ... do stuff with stf1 and stf2 here ...
}
catch (Stuff1Exception ex1)
{
// ...
}
catch (Stuff2Exception ex2)
{
// ...
}
} // Automatic deterministic destruction through Dispose() for stf1/stf2 - but in which order?
Run Code Online (Sandbox Code Playgroud)
换句话说,是否保证首先调用stf2的Dispose()方法,然后保证stf1的Dispose()方法被调用为秒?(基本上:Dispose()方法是按照它们所属对象的分配顺序调用的吗?)