System.Runtime.InteropServices.SEHException
System.Runtime.InteropServices.SEHException
Hi;
I am trying to run ncover + nant on windows x64 machine.
There are 2 ncover folders in my folder system; 1 - C:\Program Files (x86)\NCover 2 - C:\Program Files\NCover
I didn't change any default configuration parameter. I just pressed next button while installing :)
Ok, I have a problem, if you look at the below log you can see the that ncover seems to work but at the end it gives an strange error :
build-all:
coverageFirst:
[ncover] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis f or .NET [ncover] Copyright (c) 2008 Gnoso Inc. [ncover] http://www.ncover.com [ncover] [ncover] Registered to Customer #: 16971 [ncover] NCover Enterprise Edition (1 User) [ncover] 28 days left in the trial period. [ncover] [ncover] Command: C:\Program Files (x86)\NCover\NCover.Console.exe [ncover] Command Args: nunit-console.exe Cimbom.SIR.Tests.exe [ncover] Working Directory: C:\Project\Cimbom.Meet\nant.build\NUnit [ncover] Assemblies: Cimbom.SIR.Tests [ncover] [ncover] Program Output [ncover] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis f or .NET [ncover] Copyright (c) 2008 Gnoso Inc. [ncover] http://www.ncover.com [ncover] [ncover] Registered to Customer #: 16971 [ncover] NCover Enterprise Edition (1 User) [ncover] 28 days left in the trial period. [ncover] [ncover] Command: nunit-console.exe [ncover] Command Args: "Cimbom.SIR.Tests.exe" [ncover] Working Directory: [ncover] Assemblies: [ncover] [ncover] Program Output [ncover] NUnit version 2.2.9 [ncover] Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole. [ncover] Copyright (C) 2000-2003 Philip Craig. [ncover] All Rights Reserved. [ncover] [ncover] OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2 .NET Ver sion: 2.0.50727.832 [ncover] [ncover] .....2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] ..2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] ....2130706433 [ncover] ..2130706433 [ncover] .2130706433 [ncover] 2130706433 [ncover] ......2130706433 [ncover] ..................CleanNoiseWord What love [ncover] .SirUtilTest DateTimeAsString result 2008-10-16-23-58 [ncover] SirUtilTest DateTimeAsString subresult 2008-10-16 [ncover] . [ncover] Tests run: 46, Failures: 0, Not run: 0, Time: 21.938 seconds [ncover] [ncover] [ncover] [ncover] Exception [ncover] [ncover] -- Top-level exception (System.Runtime.InteropServices.SEHException)
[ncover] External component has thrown an exception. [ncover] -- Stack Trace [ncover] at CxxThrowException(Void* , sThrowInfo ) [ncover] at ShMemReader.GetMemoryPointer(ShMemReader , UInt32 addr) [ncover] at ShMemLinkedListNode.getNextNode(ShMemLinkedListNod e , ShMemReader rdr) [ncover] at ShMemLinkedList.getHeadNode(ShMemLinkedList , ShMemReader rdr) [ncover] at ShMemLinkedList.begin(ShMemLinkedList , ShMemReader rdr) [ncover] at ShMemLinkedList.count(ShMemLinkedList , ShMemReader rdr) [ncover] at NCover.Data.MwShMemLinkedList<NCover::Interfaces::IModuleInfo ^\,ModuleInfo\,NCover::Data::ModuleInfoConverter>.get_Count() [ncover] at NCover.Framework.CoverageData.ReadBinary() [ncover] at NCover.Framework.CoverageData..ctor(INCoverData data) [ncover] at NCover.Framework.ProfilerDriver.GetCoverageData() [ncover] at NCover.Framework.ProfilerDriver.Execute() [ncover] at NCover.ConsoleMain.ConsoleMain.Main(String[] args) [ncover] [ncover] End Program Output [ncover] [ncover] Execution Time: 00:00:25.0312500s [ncover] [ncover] Coverage Xml: C:\Project\Cimbom.Meet\CoverageSummary.xml
BUILD FAILED
Thanks.
RE: System.Runtime.InteropServices.SEHException
I uninstalled 64 bit version of ncover and installed 32 bit version of ncover, my first problem solved but this time i am getting :
" No data was collected." exception...
Here is the dump of the output :
coverageFirst:
[ncover] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis f or .NET [ncover] Copyright (c) 2008 Gnoso Inc. [ncover] http://www.ncover.com [ncover] [ncover] Registered to Customer #: 16971 [ncover] NCover Enterprise Edition (1 User) [ncover] 27 days left in the trial period. [ncover] [ncover] Command: nunit-console.exe [ncover] Command Args: Cimbom.SIR.Tests.exe [ncover] Working Directory: C:\Project\Cimbom.Meet\nant.build\NUnit [ncover] Assemblies: [ncover] [ncover] Program Output [ncover] NUnit version 2.2.9 [ncover] Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole. [ncover] Copyright (C) 2000-2003 Philip Craig. [ncover] All Rights Reserved. [ncover] [ncover] OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2 .NET Ver sion: 2.0.50727.832 [ncover] [ncover] .....2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] ..2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] .2130706433 [ncover] ....2130706433 [ncover] ..2130706433 [ncover] .2130706433 [ncover] 2130706433 [ncover] ......2130706433 [ncover] ..................CleanNoiseWord What love [ncover] .SirUtilTest DateTimeAsString result 2008-10-17-12-13 [ncover] SirUtilTest DateTimeAsString subresult 2008-10-17 [ncover] . [ncover] Tests run: 46, Failures: 0, Not run: 0, Time: 26.250 seconds [ncover] [ncover] [ncover] [ncover] Exception [ncover] [ncover] -- Top-level exception (System.Exception) [ncover] No data was collected. [ncover] -- Stack Trace [ncover] at NCover.Framework.ProfilerDriver._GetCoverageData() [ncover] at NCover.Framework.ProfilerDriver.Execute() [ncover] at NCover.ConsoleMain.ConsoleMain.Main(String[] args) [ncover]
BUILD FAILED
I read previous posts about "No data was collected" but it doesn't make sense.
Thanks.
RE: System.Runtime.InteropServices.SEHException
from your posts it looks like the "previous error" was that you were running NCover on NCover? i.e. your complete command line looked like "ncover.console.exe ncover.console.exe nunit-console.exe myhtests.dll"
you can fix your current error by forcing nunit to run as a 32-bit process. run "corflags /32BIT+ nunit-console.exe" from the command line in the nunit install folder.
corflags is typically loacted in "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\"
RE: System.Runtime.InteropServices.SEHException
It works.
Thanks.