"Could not merge modules"
The support ticket system seems to be broken (site error) so I'm posting this here:
I encountered a fatal error in NCover v2.1.0 on x86 with Vista.
Ironically it occurred while running an integration test for the new NCover v2 support in Gallio (http://www.gallio.org/).
I have been unable to derive any additional information about the cause of the fault such as the identity of the mysterious static initializer since the method call frames have been optimized out and the method parameters are not available for debugging.
Additional info:
The program NCover is profiling uses multiple AppDomains and has XmlSerializers and other dynamically generated code floating around.
[info] ***************** Exception *****************
[info]
[info] -- Top-level exception (System.InvalidOperationException)
[info] Could not merge modules, there is a sequence-point mismatch between multiple loads of method [.cctor..cctor() : void [static]]
[info] -- Stack Trace
[info] at NCover.Framework.CoverageData._MergeMethod(MethodData leftSide, MethodData rightSide)
[info] at NCover.Framework.CoverageData._MergeClass(ClassData leftSide, ClassData rightSide)
[info] at NCover.Framework.CoverageData.MergeModule(ModuleData leftSide, ModuleData rightSide)
[info] at NCover.Framework.CoverageData.MergeMultiplyLoadedModules()
[info] at NCover.Framework.CoverageData._MergeDocsWithExistingData(Dictionary`2 tempDocs, List`1 tempModules)
[info] at NCover.Framework.CoverageData._ReadBinary()
[info] at NCover.Framework.CoverageData..ctor(INCoverData data)
[info] at NCover.Framework.ProfilerDriver._GetCoverageData()
[info] at NCover.Framework.ProfilerDriver.Execute()
[info] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)