问题描述
|
我有一个实现IValueConverter的类。每次构建构建解决方案时,Visual Studio都会在构建成功后立即崩溃。
public class BoolToEditOrCreateConverter : IValueConverter
{
public object Convert(object value,Type targettype,object parameter,System.Globalization.CultureInfo culture)
{
return string.Empty;
}
public object ConvertBack(object value,System.Globalization.CultureInfo culture)
{
return new object();
}
}
Visual Studio问题详细信息:
问题签名:问题事件
名称:APPCRASH应用
名称:devenv.exe应用程序
版本:10.0.30319.1应用
时间戳:4ba1fab3故障模块
名称:clr.dll故障模块
版本:4.0.30319.1故障模块
时间戳:4ba1d9ef异常
代码:c00000fd异常
偏移:000018d7 OS
版本:6.1.7600.2.0.0.256.48
语言环境ID:1033
Additional information about the problem: LCID: 1033
Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available,please read our privacy
离线声明:
C:\\ Windows \\ system32 \\ en-US \\ erofflps.txt
然后,我必须从项目中删除整个类,以防止Visual Studio崩溃。
解决方法
微软刚刚发布了针对Visual Studio 2010的SP1,据说可以修复许多崩溃问题。我不知道它是否可以解决您的问题,但是尝试使用它当然不会受伤。
这是下载链接:
http://www.microsoft.com/downloads/zh-CN/details.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5&displaylang=en
这是相关的知识库文章:
http://support.microsoft.com/kb/983509
希望这可以帮助!