NCover 1.5.7. - Index was outside the bounds of the array

NCover 1.5.7. - Index was outside the bounds of the array

Hi,

when I run my unit tests with NCover 1.5.7. then I get the error "Index was outside the bounds of the array." when my tests have been finished.

Attaching Windbg to NCover shows that the error seems to be caused in NCover.Framework.CoverageData.MergeModule.

In the following you'll see some debugging output:

0:000> !pe
Exception object: 014a5358
Exception type: System.IndexOutOfRangeException
Message: Index was outside the bounds of the array.
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131508
0:000> !clrstack
OS Thread Id: 0x1408 (0)
ESP       EIP    
0012f374 7c812a5b [HelperMethodFrame: 0012f374]
0012f3c4 00cd2c6c NCover.Framework.CoverageData.MergeModule(NCover.Framework.ModuleData, NCover.Framework.ModuleData)
0012f3ec 00cd2a44 NCover.Framework.CoverageData.MergeMultiplyLoadedModules()
0012f410 00cd2902 NCover.Framework.ProfilerDriver.WriteCoverageXml(NCover.Framework.CoverageData)
0012f428 00cd1e97 NCover.Framework.ProfilerDriver.WaitForExit()
0012f458 00cd0379 NCover.ConsoleMain.ConsoleMain.Main(System.String[])
0012f69c 79e88f63 [GCFrame: 0012f69c]

The problem is reproducible. Please let me know if you would need further data to fix this issue.

Ciao
Thomas


Re: Coverage, but which?

Read the FAQ - it is "sequence point coverage" which is defined in there.

http://www.kiwidude.com/dotnet/NCoverFAQ.html


Re: Coverage, but which?

Thanks, I looked somewhere else in the file...