Visual Studio Crashing following recent upgrade to

May 16, 2012 at 11:08 AM

Just upgraded to StyleCop - 

JetBrains ReSharper 6.1 C# EditionBuild on 2011-12-20T21:15:24

Plugins: 1#1. StyleCop v4.7.1000.0 by (

Visual Studio 10.0.40219.1.


And I consistently get VS crashes ever few minutes whilst typing in the code window.


Application: devenv.exeFramework Version: v4.0.30319Description: The process was terminated due to an unhandled exception.Exception Info: System.NullReferenceExceptionStack:   at StyleCop.ReSharper610.Core.StyleCopRunnerInt.OnViolationEncountered(System.Object, StyleCop.ViolationEventArgs)   at System.EventHandler`1[[System.__Canon, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)   at StyleCop.StyleCopCore.OnViolationEncountered(StyleCop.ViolationEventArgs)   at StyleCop.StyleCopCore.AddViolation(StyleCop.SourceCode, StyleCop.Violation)   at StyleCop.StyleCopCore.AddViolation(StyleCop.SourceCode, StyleCop.Rule, Int32, System.Object[])   at StyleCop.SourceParser.AddViolation(StyleCop.SourceCode, Int32, System.String, System.Object[])   at StyleCop.SourceParser.AddViolation(StyleCop.SourceCode, Int32, System.Enum, System.Object[])   at StyleCop.StyleCopThread.DoWork(System.Object)   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)   at System.Threading.ThreadHelper.ThreadStart(System.Object)


Anyone know about this ? 

May 16, 2012 at 11:40 AM

Just fixed it. I'd fixed an issue in r#6.1.1 but not earlier versions of the plugin. If you upgrade to 6.1.1 you'll be fine. Alternatively, wait for 4.7.23 which has the fix in the 5.1.3, 6.0 and 6.1.0 plugins also.

May 16, 2012 at 11:50 AM
Edited May 16, 2012 at 12:15 PM


continues on Issue Tracker 7258

May 17, 2012 at 8:35 AM