【发布时间】:2016-04-23 16:14:20
【问题描述】:
我们有一个使用 Visual Studio 隔离 Shell 2013 的应用程序。安装该应用程序时,我们会清除注册表,以便删除旧版本。但在 Windows 7 机器上首次启动应用程序时,应用程序在尝试加载 Visual Studio 设置时死锁:
杀死进程并再次启动应用程序后,设置完全恢复,应用程序运行正常,但第一次启动时必须杀死进程,最终用户不能接受。
如果您只是通过Tools -> Import and Export Settings -> Reset settings 重置设置,则会发生完全相同的行为。
发生这种情况时,我在输出日志中看到以下异常,但我无法判断它是否真的相关:
First-chance exception at 0x75c0c42d (KernelBase.dll) in MyApp.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x002b7604.
First-chance exception at 0x75c0c42d (KernelBase.dll) in MyApp.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
A first chance exception of type 'System.NullReferenceException' occurred in Microsoft.VisualStudio.IDE.ToolboxControlsInstaller.dll
我们尝试删除注册表和磁盘上的目录中的所有相关条目(例如,Users/me/AppData/[Local|Roaming]...),但我们看不到任何更改。 任何想法如何防止 Visual Studio 挂起?
【问题讨论】:
标签: visual-studio-2013 settings visual-studio-sdk